Share via


ValidationContext Members

Include Protected Members
Include Inherited Members

Contains information about the current validation processing being performed.

The ValidationContext type exposes the following members.

Constructors

 

Name

Description

Public method

ValidationContext

Overloaded. Initializes a new instance of the ValidationContext class.

Top

Methods

 

Name

Description

Protected method

ConstructValidationMessage

Constructs a validation message. You can override this method to construct a custom validation message.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetCache

Overloaded. Gets the cache for the specified class.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetNavigationProxyModelElements

Gets the proxy model elements when a validation error occurs in the model.

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

LogError

Creates a validation error and logs a message into the collection that the validation context maintains.

Public method

LogFatal

Creates a fatal error for validation and logs a message in the validation context.

Public method

LogMessage

Creates a validation information message and logs it into the collection that the validation context maintains.

Public method

LogViolation

Creates a validation error, message, or warning.

Public method

LogWarning

Creates a validation warning and logs the message into the collection that the validation context maintains.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

SetCacheValue<T>

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public method

TryGetCacheValue<T>

Top

Properties

 

Name

Description

Public property

Categories

Gets the validation categories for this validation context.

Public property

CurrentViolations

Gets the collection of validation messages for the validation context.

Public property

CustomCategories

Gets the custom validation strings for the validation context.

Public property

ValidationSubjects

Gets the list of model elements to validate.

Top

See Also

Reference

ValidationContext Class

Microsoft.VisualStudio.Modeling.Validation Namespace