Condividi tramite


DslDefinitionModelSerializationHelperBase Class

Helper class for serializing and deserializing DslDefinitionModel models.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public MustInherit Class DslDefinitionModelSerializationHelperBase
public abstract class DslDefinitionModelSerializationHelperBase
public ref class DslDefinitionModelSerializationHelperBase abstract
[<AbstractClass>]
type DslDefinitionModelSerializationHelperBase =  class end
public abstract class DslDefinitionModelSerializationHelperBase

The DslDefinitionModelSerializationHelperBase type exposes the following members.

Constructors

  Name Description
Protected method DslDefinitionModelSerializationHelperBase Constructor

Top

Methods

  Name Description
Protected method CheckForOrphanedShapes 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.
Protected method CheckVersion Checks the version of the file being read.
Protected method CreateModelHelper Helper method to create and initialize a new DslLibrary.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetDirectory Return the directory of serializers to use
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Protected method GetMonikerResolvers This method returns the moniker resolvers for each of the domain models in the store
Public method GetSerializedModelString Return the model in XML format
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method InitializeSerialization Ensure that moniker resolvers and domain element serializers are installed properly on the given store, so that deserialization can be carried out correctly.
Protected method InitializeSerializationContext
Public method LoadModel(Store, String, ISchemaResolver, ValidationController, ISerializerLocator) Loads a DslLibrary instance into the default partition of the given store, and ignore serialization result.
Public method LoadModel(SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator) Loads a DslLibrary instance.
Public method LoadModel(SerializationResult, Store, String, ISchemaResolver, ValidationController, ISerializerLocator) Loads a DslLibrary instance into the default partition of the given store.
Public method LoadModelAndDiagram(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.
Public method LoadModelAndDiagram(SerializationResult, Store, String, String, ISchemaResolver, ValidationController, ISerializerLocator) Loads a DslLibrary instance and its associated diagram file into the default partition of the given store.
Public method LoadModelAndDiagram(SerializationResult, Partition, String, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator) Loads a DslLibrary instance and its associated diagram file.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnPostLoadModel Customize Model Loading.
Protected method ReadExtensions
Protected method ReadRootElement Read an element from the root of XML.
Protected methodStatic member ResolveSchema Attempts to resolve the supplied schema namespace
Public method SaveModel(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.
Public method SaveModel(SerializationResult, DslLibrary, String, Boolean) Saves the given model to the given file, with default encoding (UTF-8).
Public method SaveModel(SerializationResult, DslLibrary, String, Encoding, Boolean) Saves the given model root to the given file, with specified encoding.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TryCreateValidatingReader Attempts to return a validating XML reader
Protected method TryGetEncoding Attempts to return the encoding used by the reader.
Protected method WriteExtensions
Public method WriteRootElement Write an element as the root of XML.

Top

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.

See Also

Reference

Microsoft.VisualStudio.Modeling.DslDefinition Namespace