Describes the context in which a validation check is performed.
public ref class ValidationContext sealed : IServiceProvider
public sealed class ValidationContext : IServiceProvider
type ValidationContext = class
interface IServiceProvider
Public NotInheritable Class ValidationContext
Implements IServiceProvider
This class describes the type or member on which validation is performed. It also enables custom validation to be added through any service that implements the IServiceProvider interface.
Constructors Properties DisplayNameGets or sets the name of the member to validate.
ItemsGets the dictionary of key/value pairs that is associated with this context.
MemberNameGets or sets the name of the member to validate.
ObjectInstanceGets the object to validate.
ObjectTypeGets the type of the object to validate.
ServiceContainerGets the validation services container.
Methods Extension Methods GetKeyedService(IServiceProvider, Type, Object)Get service of type serviceType
from the IServiceProvider.
Get service of type T
from the IServiceProvider.
Get an enumeration of services of type serviceType
from the IServiceProvider.
Get an enumeration of services of type T
from the IServiceProvider.
Get service of type serviceType
from the IServiceProvider.
Get service of type T
from the IServiceProvider.
Creates a new AsyncServiceScope that can be used to resolve scoped services.
CreateScope(IServiceProvider)Creates a new IServiceScope that can be used to resolve scoped services.
GetRequiredService(IServiceProvider, Type)Get service of type serviceType
from the IServiceProvider.
Get service of type T
from the IServiceProvider.
Get service of type T
from the IServiceProvider.
Get an enumeration of services of type serviceType
from the IServiceProvider.
Get an enumeration of services of type T
from the IServiceProvider.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4