Delen via


ModelBusReferencePropertySerializer Class

Custom DomainProperty serializer to serialize/deserializer ModelBusReferences

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.DomainPropertyXmlSerializer
    Microsoft.VisualStudio.Modeling.Integration.ModelBusReferencePropertySerializer

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

Syntax

'Declaration
Public Class ModelBusReferencePropertySerializer _
    Inherits DomainPropertyXmlSerializer
public class ModelBusReferencePropertySerializer : DomainPropertyXmlSerializer
public ref class ModelBusReferencePropertySerializer : public DomainPropertyXmlSerializer
type ModelBusReferencePropertySerializer =  
    class 
        inherit DomainPropertyXmlSerializer 
    end
public class ModelBusReferencePropertySerializer extends DomainPropertyXmlSerializer

The ModelBusReferencePropertySerializer type exposes the following members.

Constructors

  Name Description
Public method ModelBusReferencePropertySerializer

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 the default hash function. (Inherited from Object.)
Public method GetString<T>(SerializationContext, T) Converts the supplied object to a string format. (Inherited from DomainPropertyXmlSerializer.)
Public method GetString<T>(SerializationContext, T) Return the supplied model bus reference as a string (Overrides DomainPropertyXmlSerializer.GetString<T>(SerializationContext, T).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue<T> Attempts to deserialize the suppling string to a model bus reference (Overrides DomainPropertyXmlSerializer.GetValue<T>(SerializationContext, String).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member FilePathLoadContextKey Key into the ReferenceContext set by the serializer when deserializing.
Public fieldStatic member FilePathSaveContextKey Key into the ReferenceContext set by the serialier when serializing.
Public fieldStatic member ModelBusLoadContextKey Key into the SerializationContext used by the serializer when (de)serializing.

Top

Remarks

This class is dependant on the DSL runtime as it inherits from DomainPropertyXmlSerializer.

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