The context passed to a ValidationRule.

C# | Visual Basic |
public sealed class ValidationContext
Public NotInheritable Class ValidationContext

All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | AddError(String) |
Adds a validation error.
|
![]() | AddError(ValidationError) |
Adds a validation error.
|
![]() | Entity |
The Entity being validated.
|
![]() | GetAttributeValue(String) |
Gets the value of the named attribute on the target Entity.
|
![]() | TargetName |
Gets the target name.
|
![]() | TargetValue |
Gets the target value.
|
![]() | TargetValueIsDefault |
Gets a value indicating whether TargetValue is the default
value for it's type.
|

Object | |
![]() | ValidationContext |