Share via


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

Model

Gets the model being validated.

Methods

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