Language

ValidationContext Class

Definition

Context that records errors reported by validation rules.

public sealed class ValidationContext
type ValidationContext = class
Public NotInheritable Class ValidationContext
Inheritance
ValidationContext

Properties

Name Description
Model

Gets the model being validated.

Methods

Name Description
AddError(EdmError)

Register an error with the validation context.

AddError(EdmLocation, EdmErrorCode, String)

Register an error with the validation context.

IsBad(IEdmElement)

Method returns true if the element is known to have structural errors associated with it.

Applies to