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
Public property Model Gets the model being validated.

Top

Methods

  Name Description
Public method AddError(EdmError) Adds an error with the validation context.
Public method AddError(EdmLocation, EdmErrorCode, String) Adds an error with the validation context.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IsBad Indicates whether the element has structural errors associated with it.
Public method 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.

See Also

Reference

Microsoft.Data.Edm.Validation Namespace