IDomainModelSerializer Interface

 

Defines the contract for a standard domain model serializer.

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

public interface class IDomainModelSerializer

NameDescription
System_CAPS_pubpropertyDomainModelNamespace

The XML namespace of the domain model

System_CAPS_pubpropertyDomainModelType

The type of the domain model that can be serialized

System_CAPS_pubpropertyIsSerializable

If this property is false, then calling the load / save methods will result in a NotImplementedException. Domain model libraries cannot be serialized directly.

System_CAPS_pubpropertyModelFileExtension

The file extension used when serializing instances of the domain model to a file

NameDescription
System_CAPS_pubmethodCalculateDiagramFileName(String^)

Returns the name of the diagram file that accompanies the supplied model file

System_CAPS_pubmethodLoadModel(SerializationResult^, Partition^, String^, ISerializerLocator^)

Loads the model file into the specified partition and returns the root model element.

System_CAPS_pubmethodLoadModelAndDiagram(SerializationResult^, Partition^, String^, Partition^, String^, ISerializerLocator^)

Loads the model and diagram files into the specified partition and returns the root model element.

System_CAPS_pubmethodSaveModel(SerializationResult^, ModelElement^, String^, Encoding^)

Save the model rooted on the specified element to a file

System_CAPS_pubmethodSaveModelAndDiagram(SerializationResult^, ModelElement^, String^, ModelElement^, String^, Encoding^)

Saves the model and diagram to files

Return to top
Show: