Udostępnij za pośrednictwem


DslDefinitionModelDomainModelSerializer Class

Definition

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

public ref class DslDefinitionModelDomainModelSerializer : Microsoft::VisualStudio::Modeling::DslDefinition::DslDefinitionModelDomainModelSerializerBase
[Microsoft.VisualStudio.Modeling.DomainModelSerializer(typeof(Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel), "http://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel", "dsl")]
[System.ComponentModel.Composition.Export(typeof(Microsoft.VisualStudio.Modeling.IDomainModelSerializer))]
public class DslDefinitionModelDomainModelSerializer : Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModelSerializerBase
[<Microsoft.VisualStudio.Modeling.DomainModelSerializer(typeof(Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModel), "http://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel", "dsl")>]
[<System.ComponentModel.Composition.Export(typeof(Microsoft.VisualStudio.Modeling.IDomainModelSerializer))>]
type DslDefinitionModelDomainModelSerializer = class
    inherit DslDefinitionModelDomainModelSerializerBase
Public Class DslDefinitionModelDomainModelSerializer
Inherits DslDefinitionModelDomainModelSerializerBase
Inheritance
DslDefinitionModelDomainModelSerializer
Attributes

Remarks

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

Constructors

DslDefinitionModelDomainModelSerializer()

Properties

DomainModelNamespace

The XML namespace used when serializing the domain model

(Inherited from DslDefinitionModelDomainModelSerializerBase)
DomainModelType

The type of the domain model

(Inherited from DslDefinitionModelDomainModelSerializerBase)
IsSerializable

Returns true: this DSL can be serialized / deserialized directly.

(Inherited from DslDefinitionModelDomainModelSerializerBase)
ModelFileExtension

File extension used for model files of this kind of domain model

(Inherited from DslDefinitionModelDomainModelSerializerBase)

Methods

CalculateDiagramFileName(String)

Calculates and returns the name of the diagram file for the specified model file

(Inherited from DslDefinitionModelDomainModelSerializerBase)
LoadModel(SerializationResult, Partition, String, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file.

(Inherited from DslDefinitionModelDomainModelSerializerBase)
LoadModelAndDiagram(SerializationResult, Partition, String, Partition, String, ISerializerLocator)

Loads a DslLibrary instance and its associated diagram file.

(Inherited from DslDefinitionModelDomainModelSerializerBase)
SaveModel(SerializationResult, ModelElement, String, Encoding)

Saves the given model root to the given file, with specified encoding.

(Inherited from DslDefinitionModelDomainModelSerializerBase)
SaveModelAndDiagram(SerializationResult, ModelElement, String, ModelElement, String, Encoding)

Saves the given DslLibrary and global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram to the given files, with specified encoding.

(Inherited from DslDefinitionModelDomainModelSerializerBase)

Applies to