Freigeben über


IDomainModelSerializer Interface

Defines the contract for a standard domain model serializer.

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

Syntax

'Declaration
Public Interface IDomainModelSerializer
public interface IDomainModelSerializer
public interface class IDomainModelSerializer
type IDomainModelSerializer =  interface end
public interface IDomainModelSerializer

The IDomainModelSerializer type exposes the following members.

Properties

  Name Description
Public property DomainModelNamespace The XML namespace of the domain model
Public property DomainModelType The type of the domain model that can be serialized
Public property IsSerializable If this property is false, then calling the load / save methods will result in a NotImplementedException. Domain model libraries cannot be serialized directly.
Public property ModelFileExtension The file extension used when serializing instances of the domain model to a file

Top

Methods

  Name Description
Public method CalculateDiagramFileName Returns the name of the diagram file that accompanies the supplied model file
Public method LoadModel Loads the model file into the specified partition and returns the root model element.
Public method LoadModelAndDiagram Loads the model and diagram files into the specified partition and returns the root model element.
Public method SaveModel Save the model rooted on the specified element to a file
Public method SaveModelAndDiagram Saves the model and diagram to files

Top

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace