DslDefinitionModelDomainModelSerializer Class
Provides an implementation of the IDomainModelSerializer interface that can be used to serialize / deserialize the DslDefinitionModel domain model.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModelSerializerBase
Microsoft.VisualStudio.Modeling.DslDefinition.DslDefinitionModelDomainModelSerializer
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
<ExportAttribute(GetType(IDomainModelSerializer))> _
<DomainModelSerializerAttribute(GetType(DslDefinitionModelDomainModel), "https://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel", _
"dsl")> _
Public Class DslDefinitionModelDomainModelSerializer _
Inherits DslDefinitionModelDomainModelSerializerBase
[ExportAttribute(typeof(IDomainModelSerializer))]
[DomainModelSerializerAttribute(typeof(DslDefinitionModelDomainModel), "https://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel",
"dsl")]
public class DslDefinitionModelDomainModelSerializer : DslDefinitionModelDomainModelSerializerBase
[ExportAttribute(typeof(IDomainModelSerializer))]
[DomainModelSerializerAttribute(typeof(DslDefinitionModelDomainModel), L"https://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel",
L"dsl")]
public ref class DslDefinitionModelDomainModelSerializer : public DslDefinitionModelDomainModelSerializerBase
[<ExportAttribute(typeof(IDomainModelSerializer))>]
[<DomainModelSerializerAttribute(typeof(DslDefinitionModelDomainModel), "https://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel",
"dsl")>]
type DslDefinitionModelDomainModelSerializer =
class
inherit DslDefinitionModelDomainModelSerializerBase
end
public class DslDefinitionModelDomainModelSerializer extends DslDefinitionModelDomainModelSerializerBase
The DslDefinitionModelDomainModelSerializer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DslDefinitionModelDomainModelSerializer |
Top
Properties
Name | Description | |
---|---|---|
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.) |
Top
Methods
Name | Description | |
---|---|---|
CalculateDiagramFileName | Calculates and returns the name of the diagram file for the specified model file (Inherited from DslDefinitionModelDomainModelSerializerBase.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadModel | Loads a DslLibrary instance and its associated diagram file. (Inherited from DslDefinitionModelDomainModelSerializerBase.) | |
LoadModelAndDiagram | Loads a DslLibrary instance and its associated diagram file. (Inherited from DslDefinitionModelDomainModelSerializerBase.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SaveModel | Saves the given model root to the given file, with specified encoding. (Inherited from DslDefinitionModelDomainModelSerializerBase.) | |
SaveModelAndDiagram | Saves the given DslLibrary and global::Microsoft.VisualStudio.Modeling.DslDesigner.DslDesignerDiagram to the given files, with specified encoding. (Inherited from DslDefinitionModelDomainModelSerializerBase.) | |
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.