Share via


CoreDesignSurfaceDomainModelSerializer Class

Provides an implementation of the IDomainModelSerializer interface that can be used to serialize / deserialize the CoreDesignSurface domain model.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModelSerializerBase
    Microsoft.VisualStudio.Modeling.Diagrams.CoreDesignSurfaceDomainModelSerializer

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

Syntax

'Declaration
<ExportAttribute(GetType(IDomainModelSerializer))> _
<DomainModelSerializerAttribute(GetType(CoreDesignSurfaceDomainModel), "https://schemas.microsoft.com/VisualStudio/2008/DslTools/CoreDesignSurface",  _
    Nothing)> _
Public Class CoreDesignSurfaceDomainModelSerializer _
    Inherits CoreDesignSurfaceDomainModelSerializerBase
[ExportAttribute(typeof(IDomainModelSerializer))]
[DomainModelSerializerAttribute(typeof(CoreDesignSurfaceDomainModel), "https://schemas.microsoft.com/VisualStudio/2008/DslTools/CoreDesignSurface", 
    null)]
public class CoreDesignSurfaceDomainModelSerializer : CoreDesignSurfaceDomainModelSerializerBase
[ExportAttribute(typeof(IDomainModelSerializer))]
[DomainModelSerializerAttribute(typeof(CoreDesignSurfaceDomainModel), L"https://schemas.microsoft.com/VisualStudio/2008/DslTools/CoreDesignSurface", 
    nullptr)]
public ref class CoreDesignSurfaceDomainModelSerializer : public CoreDesignSurfaceDomainModelSerializerBase
[<ExportAttribute(typeof(IDomainModelSerializer))>]
[<DomainModelSerializerAttribute(typeof(CoreDesignSurfaceDomainModel), "https://schemas.microsoft.com/VisualStudio/2008/DslTools/CoreDesignSurface", 
    null)>]
type CoreDesignSurfaceDomainModelSerializer =  
    class 
        inherit CoreDesignSurfaceDomainModelSerializerBase 
    end
public class CoreDesignSurfaceDomainModelSerializer extends CoreDesignSurfaceDomainModelSerializerBase

The CoreDesignSurfaceDomainModelSerializer type exposes the following members.

Constructors

  Name Description
Public method CoreDesignSurfaceDomainModelSerializer

Top

Properties

  Name Description
Public property DomainModelNamespace The XML namespace used when serializing the domain model (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)
Public property DomainModelType The type of the domain model (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)
Public property IsSerializable Returns false: Dsl libraries cannot be serialized / deserialized directly. (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)
Public property ModelFileExtension Returns null: Dsl libraries cannot be serialized / deserialized directly. (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)

Top

Methods

  Name Description
Public method CalculateDiagramFileName Throws NotImplementedException - Dsl libraries cannot be serialized / deserialized directly. (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)
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 GetType Gets the Type of the current instance. (Inherited from Object.)
Public method LoadModel Throws NotImplementedException - Dsl libraries cannot be serialized / deserialized directly. (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)
Public method LoadModelAndDiagram Throws NotImplementedException - Dsl libraries cannot be serialized / deserialized directly. (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SaveModel Throws NotImplementedException - Dsl libraries cannot be serialized / deserialized directly. (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)
Public method SaveModelAndDiagram Throws NotImplementedException - Dsl libraries cannot be serialized / deserialized directly. (Inherited from CoreDesignSurfaceDomainModelSerializerBase.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Double-derived class - the default implementation is in CoreDesignSurfaceDomainModelSerializerBase. This class exist so users can customize behavior easily.

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