ValidationContext Members
Include Protected Members
Include Inherited Members
Contains information about the current validation processing being performed.
The ValidationContext type exposes the following members.
Constructors
Name
Description
Overloaded. Initializes a new instance of the ValidationContext class.
Top
Methods
Name
Description
Constructs a validation message. You can override this method to construct a custom validation message.
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Overloaded. Gets the cache for the specified class.
Serves as a hash function for a particular type. (Inherited from Object.)
GetNavigationProxyModelElements
Gets the proxy model elements when a validation error occurs in the model.
Gets the type of the current instance. (Inherited from Object.)
Creates a validation error and logs a message into the collection that the validation context maintains.
Creates a fatal error for validation and logs a message in the validation context.
Creates a validation information message and logs it into the collection that the validation context maintains.
Creates a validation error, message, or warning.
Creates a validation warning and logs the message into the collection that the validation context maintains.
Creates a shallow copy of the current Object. (Inherited from Object.)
Returns a string that represents the current object. (Inherited from Object.)
Top
Properties
Name
Description
Gets the validation categories for this validation context.
Gets the collection of validation messages for the validation context.
Gets the custom validation strings for the validation context.
Gets the list of model elements to validate.
Top