System.ComponentModel.DataAnnotations.ValidationContext
Describes the context in which a validation check is performed.
Gets or sets the name of the member to validate.
Gets the dictionary of key/value pairs that is associated with this context.
Gets or sets the name of the member to validate.
Gets the object to validate.
Gets the type of the object to validate.
Initializes a new instance of the ValidationContext class using the specified object instance.
Initializes a new instance of the ValidationContext class using the specified object and an optional property bag.
public ValidationContext(object instance, IServiceProvider serviceProvider, IDictionary<object, object> items)
Initializes a new instance of the ValidationContext class using the service provider and dictionary of service consumers.
Returns the service that provides custom validation.
Initializes the ValidationContext using a service provider that can return service instances by type when GetService is called.