ValidationMessageObserver Class

 

Reports errors, messages, and warnings that are generated from validation methods.

Namespace:   Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)


public ref class ValidationMessageObserver abstract 

NameDescription
System_CAPS_protmethodValidationMessageObserver()

Initializes a new instance of the ValidationMessageObserver class.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnValidationBeginning(ValidationContext^)

Indicates that validation is about to begin.

System_CAPS_protmethodOnValidationEnded(ValidationContext^)

Indicates that validation has ended.

System_CAPS_protmethodOnValidationMessageAdded(ValidationMessage^)

Indicates that a validation message has been added.

System_CAPS_protmethodOnValidationMessageRemoved(ValidationMessage^)

Indicates that a message has been removed.

System_CAPS_protmethodOnValidationMessagesChangedSummary(ReadOnlyCollection<ValidationMessage^>^, ReadOnlyCollection<ValidationMessage^>^)

Indicates that the list of validation messages has changed.

System_CAPS_protmethodOnValidationMessagesChanging(ReadOnlyCollection<ValidationMessage^>^, ReadOnlyCollection<ValidationMessage^>^, ReadOnlyCollection<ValidationMessage^>^, ReadOnlyCollection<ValidationMessage^>^)

Indicates that a list of validation messages is changing.

System_CAPS_pubmethodToString()

(Inherited from Object.)

This abstract class provides methods that occur at events during the validation process, such as OnValidationBeginning and OnValidationEnded.

If you use these methods, a derived class can perform one or more actions at one or more events during the validation process. Examples of these events include when validation starts or ends.

After all the validation methods have been invoked, the user receives the messages that were added or removed during the validation process.

The methods are called in the following order:

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: