次の方法で共有


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣言
<DomainModelSerializerAttribute(GetType(CoreDesignSurfaceDomainModel), "https://schemas.microsoft.com/VisualStudio/2008/DslTools/CoreDesignSurface",  _
    Nothing)> _
<ExportAttribute(GetType(IDomainModelSerializer))> _
Public Class CoreDesignSurfaceDomainModelSerializer _
    Inherits CoreDesignSurfaceDomainModelSerializerBase
[DomainModelSerializerAttribute(typeof(CoreDesignSurfaceDomainModel), "https://schemas.microsoft.com/VisualStudio/2008/DslTools/CoreDesignSurface", 
    null)]
[ExportAttribute(typeof(IDomainModelSerializer))]
public class CoreDesignSurfaceDomainModelSerializer : CoreDesignSurfaceDomainModelSerializerBase
[DomainModelSerializerAttribute(typeof(CoreDesignSurfaceDomainModel), L"https://schemas.microsoft.com/VisualStudio/2008/DslTools/CoreDesignSurface", 
    nullptr)]
[ExportAttribute(typeof(IDomainModelSerializer))]
public ref class CoreDesignSurfaceDomainModelSerializer : public CoreDesignSurfaceDomainModelSerializerBase
[<DomainModelSerializerAttribute(typeof(CoreDesignSurfaceDomainModel), "https://schemas.microsoft.com/VisualStudio/2008/DslTools/CoreDesignSurface", 
    null)>]
[<ExportAttribute(typeof(IDomainModelSerializer))>]
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 a hash function for a particular type. (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