DslDefinitionModelSerializationHelper 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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
'Declaração
Public NotInheritable Class DslDefinitionModelSerializationHelper _
Inherits DslDefinitionModelSerializationHelperBase
public sealed class DslDefinitionModelSerializationHelper : DslDefinitionModelSerializationHelperBase
public ref class DslDefinitionModelSerializationHelper sealed : public DslDefinitionModelSerializationHelperBase
[<Sealed>]
type DslDefinitionModelSerializationHelper =
class
inherit DslDefinitionModelSerializationHelperBase
end
public final class DslDefinitionModelSerializationHelper extends DslDefinitionModelSerializationHelperBase
The DslDefinitionModelSerializationHelper type exposes the following members.
Properties
Name | Description | |
---|---|---|
Instance | Singleton instance. |
Top
Methods
Name | Description | |
---|---|---|
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. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
CheckVersion | Checks the version of the file being read. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
CreateModelHelper | Helper method to create and initialize a new DslLibrary. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetDirectory | Return the directory of serializers to use (Inherited from DslDefinitionModelSerializationHelperBase.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetMonikerResolvers | This method returns the moniker resolvers for each of the domain models in the store (Inherited from DslDefinitionModelSerializationHelperBase.) | |
GetSerializedModelString | Return the model in XML format (Inherited from DslDefinitionModelSerializationHelperBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeSerialization | 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.) | |
InitializeSerializationContext | (Inherited from DslDefinitionModelSerializationHelperBase.) | |
LoadModel(Store, String, ISchemaResolver, ValidationController, ISerializerLocator) | Loads a DslLibrary instance into the default partition of the given store, and ignore serialization result. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
LoadModel(SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator) | Loads a DslLibrary instance. (Overrides DslDefinitionModelSerializationHelperBase.LoadModel(SerializationResult, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator).) | |
LoadModel(SerializationResult, Store, String, ISchemaResolver, ValidationController, ISerializerLocator) | Loads a DslLibrary instance into the default partition of the given store. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
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. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
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. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
LoadModelAndDiagram(SerializationResult, Partition, String, Partition, String, ISchemaResolver, ValidationController, ISerializerLocator) | Loads a DslLibrary instance and its associated diagram file. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnPostLoadModel | Customize Model Loading. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
ReadAdditionalElementData | (Inherited from DslDefinitionModelSerializationHelperBase.) | |
ReadRootElement | Read an element from the root of XML. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
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. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
SaveModel(SerializationResult, DslLibrary, String, Boolean) | Saves the given model to the given file, with default encoding (UTF-8). (Inherited from DslDefinitionModelSerializationHelperBase.) | |
SaveModel(SerializationResult, DslLibrary, String, Encoding, Boolean) | Saves the given model root to the given file, with specified encoding. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryCreateValidatingReader | Attempts to return a validating XML reader (Inherited from DslDefinitionModelSerializationHelperBase.) | |
TryGetEncoding | Attempts to return the encoding used by the reader. (Inherited from DslDefinitionModelSerializationHelperBase.) | |
WriteAdditionalElementData | (Inherited from DslDefinitionModelSerializationHelperBase.) | |
WriteRootElement | Write an element as the root of XML. (Inherited from DslDefinitionModelSerializationHelperBase.) |
Top
Remarks
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
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.