DslDefinitionModelSerializationHelperBase Class

 

Helper class for serializing and deserializing DslDefinitionModel models.

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

System::Object
  Microsoft.VisualStudio.Modeling.DslDefinition::DslDefinitionModelSerializationHelperBase
    Microsoft.VisualStudio.Modeling.DslDefinition::DslDefinitionModelSerializationHelper

public ref class DslDefinitionModelSerializationHelperBase abstract 

NameDescription
System_CAPS_protmethodCheckForOrphanedShapes(Diagram^, SerializationResult^)

Go through the diagram to find all shapes that are not connected to a model element. Some of them may be by design, the rest are out-of-sync shapes. We want to make sure that all out-of-sync shapes are given a chance to fix themselves up, or post proper warning/error messages.

System_CAPS_protmethodCheckVersion(SerializationContext^, XmlReader^)

Checks the version of the file being read.

System_CAPS_protmethodCreateModelHelper(Partition^)

Helper method to create and initialize a new DslLibrary.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_protmethodGetDirectory(Store^)

Return the directory of serializers to use

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetMonikerResolvers(Store^)

This method returns the moniker resolvers for each of the domain models in the store

System_CAPS_pubmethodGetSerializedModelString(DslLibrary^, Encoding^)

Return the model in XML format

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodInitializeSerialization(Store^)

Ensure that moniker resolvers and domain element serializers are installed properly on the given store, so that deserialization can be carried out correctly.

System_CAPS_protmethodInitializeSerializationContext(Partition^, SerializationContext^, Boolean)

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

Loads a DslLibrary instance.

System_CAPS_pubmethodLoadModel(SerializationResult^, Store^, String^, ISchemaResolver^, ValidationController^, ISerializerLocator^)

Loads a DslLibrary instance into the default partition of the given store.

System_CAPS_pubmethodLoadModel(Store^, String^, ISchemaResolver^, ValidationController^, ISerializerLocator^)

Loads a DslLibrary instance into the default partition of the given store, and ignore serialization result.

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

Loads a DslLibrary instance and its associated diagram file.

System_CAPS_pubmethodLoadModelAndDiagram(SerializationResult^, Store^, String^, String^, ISchemaResolver^, ValidationController^, ISerializerLocator^)

Loads a DslLibrary instance and its associated diagram file into the default partition of the given store.

System_CAPS_pubmethodLoadModelAndDiagram(Store^, String^, String^, ISchemaResolver^, ValidationController^, ISerializerLocator^)

Loads a DslLibrary instance and its associated diagram file into the default partition of the given store, and ignore serialization result.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnPostLoadModel(SerializationResult^, Partition^, String^, DslLibrary^)

Customize Model Loading.

System_CAPS_protmethodReadExtensions(SerializationContext^, ModelElement^, XmlReader^)

System_CAPS_protmethodReadRootElement(SerializationContext^, ModelElement^, XmlReader^, ISchemaResolver^)

Read an element from the root of XML.

System_CAPS_protmethodSystem_CAPS_staticResolveSchema(String^, XmlSchemaSet^, ISchemaResolver^, XmlReader^, SerializationContext^)

Attempts to resolve the supplied schema namespace

System_CAPS_pubmethodSaveModel(SerializationResult^, DslLibrary^, String^)

Saves the given model root to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.

System_CAPS_pubmethodSaveModel(SerializationResult^, DslLibrary^, String^, Boolean)

Saves the given model to the given file, with default encoding (UTF-8).

System_CAPS_pubmethodSaveModel(SerializationResult^, DslLibrary^, String^, Encoding^, Boolean)

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

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodTryCreateValidatingReader(ISchemaResolver^, XmlReader^, SerializationContext^)

Attempts to return a validating XML reader

System_CAPS_protmethodTryGetEncoding(XmlReader^, Encoding^)

Attempts to return the encoding used by the reader.

System_CAPS_protmethodWriteExtensions(SerializationContext^, ModelElement^, XmlWriter^)

System_CAPS_pubmethodWriteRootElement(SerializationContext^, ModelElement^, XmlWriter^)

Write an element as the root of XML.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: