Validation Methods
.NET Framework 4
The Validation type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddErrorHandler | Adds an event handler for the Error attached event to the specified object. |
|
ClearInvalid | Removes all ValidationError objects from the specified BindingExpressionBase object. |
|
GetErrors | Gets the value of the Errors attached property of the specified element. |
|
GetErrorTemplate | Gets the value of the ErrorTemplate attached property of the specified element. |
|
GetHasError | Gets the value of the HasError attached property of the specified element. |
|
GetValidationAdornerSite | Gets the value of the ValidationAdornerSite attached property for the specified element. |
|
GetValidationAdornerSiteFor | Gets the value of the ValidationAdornerSiteFor attached property for the specified element. |
|
MarkInvalid | Marks the specified BindingExpression object as invalid with the specified ValidationError object. |
|
RemoveErrorHandler | Adds an event handler for the Error attached event from the specified object. |
|
SetErrorTemplate | Sets the value of the ErrorTemplate attached property to the specified element. |
|
SetValidationAdornerSite | Sets the ValidationAdornerSite attached property to the specified value on the specified element. |
|
SetValidationAdornerSiteFor | Sets the ValidationAdornerSiteFor attached property to the specified value on the specified element. |