Contains information about the current validation processing being performed.
The ValidationContext type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
ValidationContext | Overloaded. Initializes a new instance of the ValidationContext class. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
ConstructValidationMessage | Constructs a validation message. You can override this method to construct a custom validation message. |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetCache | Overloaded. Gets the cache for the specified class. |
![]() |
GetHashCode | 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. |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
LogError | Creates a validation error and logs a message into the collection that the validation context maintains. |
![]() |
LogFatal | Creates a fatal error for validation and logs a message in the validation context. |
![]() |
LogMessage | Creates a validation information message and logs it into the collection that the validation context maintains. |
![]() |
LogViolation | Creates a validation error, message, or warning. |
![]() |
LogWarning | Creates a validation warning and logs the message into the collection that the validation context maintains. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
SetCacheValue<T> | |
![]() |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
![]() |
TryGetCacheValue<T> |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Categories | Gets the validation categories for this validation context. |
![]() |
CurrentViolations | Gets the collection of validation messages for the validation context. |
![]() |
CustomCategories | Gets the custom validation strings for the validation context. |
![]() |
ValidationSubjects | Gets the list of model elements to validate. |
Top
.gif)
.gif)
.gif)