ValidationMessageObserver Class
Reports errors, messages, and warnings that are generated from validation methods.
Inheritance Hierarchy
System.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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
‘선언
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 | |
---|---|---|
ValidationMessageObserver | Initializes a new instance of the ValidationMessageObserver class. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnValidationBeginning | Indicates that validation is about to begin. | |
OnValidationEnded | Indicates that validation has ended. | |
OnValidationMessageAdded | Indicates that a validation message has been added. | |
OnValidationMessageRemoved | Indicates that a message has been removed. | |
OnValidationMessagesChangedSummary | Indicates that the list of validation messages has changed. | |
OnValidationMessagesChanging | Indicates that a list of validation messages is changing. | |
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.