Udostępnij za pośrednictwem


DslDefinitionModelSerializationHelperBase.SerializationValidationObserver Class

An utility class to collect validation messages during serialization, and store them in serialization result.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Validation.ValidationMessageObserver
    Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelSerializationHelperBase.SerializationValidationObserver

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

Syntax

'Declaration
Protected NotInheritable Class SerializationValidationObserver _
    Inherits ValidationMessageObserver _
    Implements IDisposable
protected sealed class SerializationValidationObserver : ValidationMessageObserver, 
    IDisposable
protected ref class SerializationValidationObserver sealed : public ValidationMessageObserver, 
    IDisposable
[<Sealed>]
type SerializationValidationObserver =  
    class
        inherit ValidationMessageObserver
        interface IDisposable
    end
protected final class SerializationValidationObserver extends ValidationMessageObserver implements IDisposable

The DslDefinitionModelSerializationHelperBase.SerializationValidationObserver type exposes the following members.

Methods

  Name Description
Public method Dispose IDisposable.Dispose().
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. (Inherited from ValidationMessageObserver.)
Protected method OnValidationEnded Indicates that validation has ended. (Inherited from ValidationMessageObserver.)
Protected method OnValidationMessageAdded Indicates that a validation message has been added. (Inherited from ValidationMessageObserver.)
Protected method OnValidationMessageRemoved Indicates that a message has been removed. (Inherited from ValidationMessageObserver.)
Protected method OnValidationMessagesChangedSummary Indicates that the list of validation messages has changed. (Inherited from ValidationMessageObserver.)
Protected method OnValidationMessagesChanging Indicates that a list of validation messages is changing. (Inherited from ValidationMessageObserver.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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.DslDefinition Namespace