DslDefinitionModelSerializationHelper 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 DslDefinitionModelSerializationHelper sealed : DslDefinitionModelSerializationHelperBase

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticInstance

Singleton instance.

NameDescription
System_CAPS_protmethodCreateModelHelper(Partition^)

Helper method to create and initialize a new DslLibrary.(Inherited from DslDefinitionModelSerializationHelperBase.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

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(Inherited from DslDefinitionModelSerializationHelperBase.)

System_CAPS_pubmethodGetSerializedModelString(DslLibrary^, Encoding^)

Return the model in XML format(Inherited from DslDefinitionModelSerializationHelperBase.)

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.(Inherited from DslDefinitionModelSerializationHelperBase.)

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

Loads a DslLibrary instance into the default partition of the given store.(Inherited from DslDefinitionModelSerializationHelperBase.)

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

Loads a DslLibrary instance into the default partition of the given store, and ignore serialization result.(Inherited from DslDefinitionModelSerializationHelperBase.)

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

Loads a DslLibrary instance and its associated diagram file.(Inherited from DslDefinitionModelSerializationHelperBase.)

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.(Inherited from DslDefinitionModelSerializationHelperBase.)

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.(Inherited from DslDefinitionModelSerializationHelperBase.)

System_CAPS_protmethodReadExtensions(SerializationContext^, ModelElement^, XmlReader^)
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.(Inherited from DslDefinitionModelSerializationHelperBase.)

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

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

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

Saves the given model root to the given file, with specified encoding.(Inherited from DslDefinitionModelSerializationHelperBase.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodWriteExtensions(SerializationContext^, ModelElement^, XmlWriter^)
System_CAPS_pubmethodWriteRootElement(SerializationContext^, ModelElement^, XmlWriter^)

Write an element as the root of XML.(Inherited from DslDefinitionModelSerializationHelperBase.)

This is very similar to the standard (generated) version check, but differs in checking the major and minor version numbers independently and treating mismatches differently

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: