Share via


ValidationMessageObserver Class

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

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.Validation.ValidationMessageObserver
    Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelSerializationHelperBase.SerializationValidationObserver
    Microsoft.VisualStudio.Modeling.Shell.ErrorListObserver

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

Syntax

'Declaration
Public MustInherit Class ValidationMessageObserver
public abstract class ValidationMessageObserver
public ref class ValidationMessageObserver abstract
[<AbstractClass>]
type ValidationMessageObserver =  class end
public abstract class ValidationMessageObserver

The ValidationMessageObserver type exposes the following members.

Constructors

  Name Description
Protected method ValidationMessageObserver Initializes a new instance of the ValidationMessageObserver class.

Top

Methods

  Name Description
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 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnValidationBeginning Indicates that validation is about to begin.
Protected method OnValidationEnded Indicates that validation has ended.
Protected method OnValidationMessageAdded Indicates that a validation message has been added.
Protected method OnValidationMessageRemoved Indicates that a message has been removed.
Protected method OnValidationMessagesChangedSummary Indicates that the list of validation messages has changed.
Protected method OnValidationMessagesChanging Indicates that a list of validation messages is changing.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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:

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

Microsoft.VisualStudio.Modeling.Validation Namespace