ValidationContext Class
Specifies a context that records errors reported by validation rules.
Inheritance Hierarchy
System.Object
Microsoft.Data.Edm.Validation.ValidationContext
Namespace: Microsoft.Data.Edm.Validation
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public NotInheritable Class ValidationContext
'Usage
Dim instance As ValidationContext
public sealed class ValidationContext
public ref class ValidationContext sealed
[<SealedAttribute>]
type ValidationContext = class end
public final class ValidationContext
The ValidationContext type exposes the following members.
Properties
Name | Description | |
---|---|---|
Model | Gets the model being validated. |
Top
Methods
Name | Description | |
---|---|---|
AddError(EdmError) | Adds an error with the validation context. | |
AddError(EdmLocation, EdmErrorCode, String) | Adds an error with the validation context. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IsBad | Indicates whether the element has structural errors associated with it. | |
ToString | (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.