Share via


ValidationMessageObserver Class

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

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

Syntax

'Declaration
Public MustInherit Class ValidationMessageObserver
'Usage
Dim instance As ValidationMessageObserver
public abstract class ValidationMessageObserver
public ref class ValidationMessageObserver abstract
public abstract class ValidationMessageObserver

Remarks

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:

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Validation.ValidationMessageObserver
    Microsoft.VisualStudio.Modeling.Shell.ErrorListObserver

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

ValidationMessageObserver Members

Microsoft.VisualStudio.Modeling.Validation Namespace