DslDefinitionModelDomainModelSerializer Class

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

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModelSerializerBase
    Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModelSerializer

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

Syntax

'Declaration
<DomainModelSerializerAttribute(GetType(DslDefinitionModelDomainModel), "https://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel",  _
    "dsl")> _
<ExportAttribute(GetType(IDomainModelSerializer))> _
Public Class DslDefinitionModelDomainModelSerializer _
    Inherits DslDefinitionModelDomainModelSerializerBase
[DomainModelSerializerAttribute(typeof(DslDefinitionModelDomainModel), "https://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel", 
    "dsl")]
[ExportAttribute(typeof(IDomainModelSerializer))]
public class DslDefinitionModelDomainModelSerializer : DslDefinitionModelDomainModelSerializerBase
[DomainModelSerializerAttribute(typeof(DslDefinitionModelDomainModel), L"https://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel", 
    L"dsl")]
[ExportAttribute(typeof(IDomainModelSerializer))]
public ref class DslDefinitionModelDomainModelSerializer : public DslDefinitionModelDomainModelSerializerBase
[<DomainModelSerializerAttribute(typeof(DslDefinitionModelDomainModel), "https://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel", 
    "dsl")>]
[<ExportAttribute(typeof(IDomainModelSerializer))>]
type DslDefinitionModelDomainModelSerializer =  
    class 
        inherit DslDefinitionModelDomainModelSerializerBase 
    end
public class DslDefinitionModelDomainModelSerializer extends DslDefinitionModelDomainModelSerializerBase

The DslDefinitionModelDomainModelSerializer type exposes the following members.

Constructors

  Name Description
Public method DslDefinitionModelDomainModelSerializer

Top

Properties

  Name Description
Public property DomainModelNamespace The XML namespace used when serializing the domain model (Inherited from DslDefinitionModelDomainModelSerializerBase.)
Public property DomainModelType The type of the domain model (Inherited from DslDefinitionModelDomainModelSerializerBase.)
Public property IsSerializable Returns true: this DSL can be serialized / deserialized directly. (Inherited from DslDefinitionModelDomainModelSerializerBase.)
Public property ModelFileExtension File extension used for model files of this kind of domain model (Inherited from DslDefinitionModelDomainModelSerializerBase.)

Top

Methods

  Name Description
Public method CalculateDiagramFileName Calculates and returns the name of the diagram file for the specified model file (Inherited from DslDefinitionModelDomainModelSerializerBase.)
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 Loads a DslLibrary instance and its associated diagram file. (Inherited from DslDefinitionModelDomainModelSerializerBase.)
Public method LoadModelAndDiagram Loads a DslLibrary instance and its associated diagram file. (Inherited from DslDefinitionModelDomainModelSerializerBase.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SaveModel Saves the given model root to the given file, with specified encoding. (Inherited from DslDefinitionModelDomainModelSerializerBase.)
Public method SaveModelAndDiagram Saves the given DslLibrary and global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram to the given files, with specified encoding. (Inherited from DslDefinitionModelDomainModelSerializerBase.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Double-derived class - the default implementation is in DslDefinitionModelDomainModelSerializerBase. 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.DslDefinition Namespace