C# 클래스 Company.OrmLanguage.OrmLanguageSerializationHelperBase

파일 보기 프로젝트 열기: thabart/SimpleOrm

공개 메소드들

메소드 설명
GetSerializedModelString ( global modelRoot, global encoding ) : string

Return the model in XML format

LoadModel ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling store, string fileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel

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

LoadModel ( global::Microsoft.VisualStudio.Modeling store, string fileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel

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

LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling store, string modelFileName, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel

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

LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling store, string modelFileName, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel

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

SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, OrmLanguageDiagram diagram, string diagramFileName ) : void

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

SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, OrmLanguageDiagram diagram, string diagramFileName, bool writeOptionalPropertiesWithDefaultValue ) : void

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

SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string fileName ) : void

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.

SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string fileName, bool writeOptionalPropertiesWithDefaultValue ) : void

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

SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string modelFileName, OrmLanguageDiagram diagram, string diagramFileName ) : void

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

SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string modelFileName, OrmLanguageDiagram diagram, string diagramFileName, bool writeOptionalPropertiesWithDefaultValue ) : void

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

WriteRootElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling rootElement, global writer ) : void

Write an element as the root of XML.

보호된 메소드들

메소드 설명
CheckVersion ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader ) : void

Checks the version of the file being read.

CreateModelHelper ( global::Microsoft.VisualStudio.Modeling modelPartition ) : SampleOrmModel

Helper method to create and initialize a new SampleOrmModel.

GetDirectory ( global::Microsoft.VisualStudio.Modeling store ) : DslModeling::DomainXmlSerializerDirectory

Return the directory of serializers to use

GetMonikerResolvers ( global::Microsoft.VisualStudio.Modeling store ) : DslModeling::IMonikerResolver>.global::System.Collections.Generic.IDictionary

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

InitializeSerialization ( global::Microsoft.VisualStudio.Modeling store ) : void

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

InitializeSerializationContext ( global::Microsoft.VisualStudio.Modeling partition, global::Microsoft.VisualStudio.Modeling serializationContext, bool isLoading ) : void
OrmLanguageSerializationHelperBase ( ) : System.Linq

Constructor

ReadExtensions ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global reader ) : void

Read any extension data written inside this XML element

The method reads any extension element data, regardless of whether it relates the current element or not. There may be no additional data for the specified element.

ReadRootElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling rootElement, global reader, global::Microsoft.VisualStudio.Modeling schemaResolver ) : void

Read an element from the root of XML.

ResolveSchema ( string targetNamespace, global schemaSet, global::Microsoft.VisualStudio.Modeling schemaResolver, global reader, global::Microsoft.VisualStudio.Modeling serializationContext ) : bool

Attempts to resolve the supplied schema namespace

If the schema can be resolved it is added to the supplied schema set. Otherwise, a warning will be written to serializationContext.

TryCreateValidatingReader ( global::Microsoft.VisualStudio.Modeling schemaResolver, global reader, global::Microsoft.VisualStudio.Modeling serializationContext ) : global::System.Xml.XmlReader

Attempts to return a validating XML reader

TryGetEncoding ( global reader, global &encoding ) : bool

Attempts to return the encoding used by the reader.

The reader will be positioned at the start of the document when calling this method.

WriteExtensions ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global writer ) : void

Write extension element data inside the current XML element

The default implemenation is to write out all non-embedded extension elements, regardless of whether they relate to the current element or not. The additional data should be written as a series of one or more XML elements.

비공개 메소드들

메소드 설명
CheckForOrphanedShapes ( global::Microsoft.VisualStudio.Modeling.Diagrams diagram, global::Microsoft.VisualStudio.Modeling serializationResult ) : void
CreateDiagramHelper ( global::Microsoft.VisualStudio.Modeling diagramPartition, global::Microsoft.VisualStudio.Modeling modelRoot ) : OrmLanguageDiagram
CreateXmlReaderSettings ( global::Microsoft.VisualStudio.Modeling serializationContext, bool isDiagram ) : global::System.Xml.XmlReaderSettings

Creates and returns the settings used when reading a file.

CreateXmlWriterSettings ( global::Microsoft.VisualStudio.Modeling serializationContext, bool isDiagram, global encoding ) : global::System.Xml.XmlWriterSettings

Creates and returns the settings used when writing a file.

InternalSaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, OrmLanguageDiagram diagram, string diagramFileName, global encoding, bool writeOptionalPropertiesWithDefaultValue ) : global::System.IO.MemoryStream
InternalSaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string fileName, global encoding, bool writeOptionalPropertiesWithDefaultValue ) : global::System.IO.MemoryStream
LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling modelPartition, string modelFileName, global::Microsoft.VisualStudio.Modeling diagramPartition, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel
ReadAttribute ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global reader, string attributeName ) : string

Reads and returns the value of an attribute.

This is an extension point to allow customisation e.g. to decode the data being written to the file.

ReadElementContentAsString ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global reader ) : string

Reads and returns the value of an element.

This is an extension point to allow customisation e.g. to decode the data being written to the file.

SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, OrmLanguageDiagram diagram, string diagramFileName, global encoding, bool writeOptionalPropertiesWithDefaultValue ) : void
SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string fileName, global encoding, bool writeOptionalPropertiesWithDefaultValue ) : void
SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string modelFileName, OrmLanguageDiagram diagram, string diagramFileName, global encoding, bool writeOptionalPropertiesWithDefaultValue ) : void
WriteAttributeString ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global writer, string attributeName, string attributeValue ) : void

Writes the specified attribute to the file.

This is an extension point to allow customisation e.g. to encode the data being written to the file.

WriteElementString ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global writer, string elementName, string elementValue ) : void

Writes the specified element to the file.

This is an extension point to allow customisation e.g. to encode the data being written to the file.

메소드 상세

CheckVersion() 보호된 메소드

Checks the version of the file being read.
protected CheckVersion ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader ) : void
serializationContext global::Microsoft.VisualStudio.Modeling Serialization context.
reader global Reader for the file being read. The reader is positioned at the open tag of the root element being read.
리턴 void

CreateModelHelper() 보호된 메소드

Helper method to create and initialize a new SampleOrmModel.
protected CreateModelHelper ( global::Microsoft.VisualStudio.Modeling modelPartition ) : SampleOrmModel
modelPartition global::Microsoft.VisualStudio.Modeling
리턴 SampleOrmModel

GetDirectory() 보호된 메소드

Return the directory of serializers to use
protected GetDirectory ( global::Microsoft.VisualStudio.Modeling store ) : DslModeling::DomainXmlSerializerDirectory
store global::Microsoft.VisualStudio.Modeling
리턴 DslModeling::DomainXmlSerializerDirectory

GetMonikerResolvers() 보호된 메소드

This method returns the moniker resolvers for each of the domain models in the store
protected GetMonikerResolvers ( global::Microsoft.VisualStudio.Modeling store ) : DslModeling::IMonikerResolver>.global::System.Collections.Generic.IDictionary
store global::Microsoft.VisualStudio.Modeling Store on which the moniker resolvers are set up.
리턴 DslModeling::IMonikerResolver>.global::System.Collections.Generic.IDictionary

GetSerializedModelString() 공개 메소드

Return the model in XML format
public GetSerializedModelString ( global modelRoot, global encoding ) : string
modelRoot global Root instance to be saved.
encoding global Encoding to use when saving the root instance.
리턴 string

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 InitializeSerialization ( global::Microsoft.VisualStudio.Modeling store ) : void
store global::Microsoft.VisualStudio.Modeling Store on which moniker resolvers will be set up.
리턴 void

InitializeSerializationContext() 보호된 메소드

protected InitializeSerializationContext ( global::Microsoft.VisualStudio.Modeling partition, global::Microsoft.VisualStudio.Modeling serializationContext, bool isLoading ) : void
partition global::Microsoft.VisualStudio.Modeling The partition being serialized.
serializationContext global::Microsoft.VisualStudio.Modeling The current serialization context instance.
isLoading bool Flag to indicate whether the file is being loaded or saved.
리턴 void

LoadModel() 공개 메소드

Loads a SampleOrmModel instance into the default partition of the given store.
public LoadModel ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling store, string fileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the load operation.
store global::Microsoft.VisualStudio.Modeling The new SampleOrmModel instance will be created into the default partition of this store.
fileName string Name of the file from which the SampleOrmModel instance will be deserialized.
schemaResolver global::Microsoft.VisualStudio.Modeling /// An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). /// If null is passed, schema validation will not be performed. ///
validationController global::Microsoft.VisualStudio.Modeling.Validation /// A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null /// is passed, load-time validation will not be performed. ///
serializerLocator global::Microsoft.VisualStudio.Modeling /// An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null. ///
리턴 SampleOrmModel

LoadModel() 공개 메소드

Loads a SampleOrmModel instance into the default partition of the given store, and ignore serialization result.
public LoadModel ( global::Microsoft.VisualStudio.Modeling store, string fileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel
store global::Microsoft.VisualStudio.Modeling The new SampleOrmModel instance will be created into the default partition of this store.
fileName string Name of the file from which the SampleOrmModel instance will be deserialized.
schemaResolver global::Microsoft.VisualStudio.Modeling /// An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). /// If null is passed, schema validation will not be performed. ///
validationController global::Microsoft.VisualStudio.Modeling.Validation /// A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null /// is passed, load-time validation will not be performed. ///
serializerLocator global::Microsoft.VisualStudio.Modeling /// An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null. ///
리턴 SampleOrmModel

LoadModelAndDiagram() 공개 메소드

Loads a SampleOrmModel instance and its associated diagram file into the default partition of the given store.
public LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling store, string modelFileName, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the load operation.
store global::Microsoft.VisualStudio.Modeling The new SampleOrmModel instance will be created into the default partition of this store.
modelFileName string Name of the file from which the SampleOrmModel instance will be deserialized.
diagramFileName string Name of the file from which the OrmLanguageDiagram instance will be deserialized.
schemaResolver global::Microsoft.VisualStudio.Modeling /// An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). /// If null is passed, schema validation will not be performed. ///
validationController global::Microsoft.VisualStudio.Modeling.Validation /// A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null /// is passed, load-time validation will not be performed. ///
serializerLocator global::Microsoft.VisualStudio.Modeling /// An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null. ///
리턴 SampleOrmModel

LoadModelAndDiagram() 공개 메소드

Loads a SampleOrmModel instance and its associated diagram file into the default partition of the given store, and ignore serialization result.
public LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling store, string modelFileName, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : SampleOrmModel
store global::Microsoft.VisualStudio.Modeling The new SampleOrmModel instance will be created into the default partition of this store.
modelFileName string Name of the file from which the SampleOrmModel instance will be deserialized.
diagramFileName string Name of the file from which the OrmLanguageDiagram instance will be deserialized.
schemaResolver global::Microsoft.VisualStudio.Modeling /// An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). /// If null is passed, schema validation will not be performed. ///
validationController global::Microsoft.VisualStudio.Modeling.Validation /// A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null /// is passed, load-time validation will not be performed. ///
serializerLocator global::Microsoft.VisualStudio.Modeling /// An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null. ///
리턴 SampleOrmModel

OrmLanguageSerializationHelperBase() 보호된 메소드

Constructor
protected OrmLanguageSerializationHelperBase ( ) : System.Linq
리턴 System.Linq

ReadExtensions() 보호된 메소드

Read any extension data written inside this XML element
The method reads any extension element data, regardless of whether it relates the current element or not. There may be no additional data for the specified element.
protected ReadExtensions ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global reader ) : void
serializationContext global::Microsoft.VisualStudio.Modeling The current serialization context instance.
element global::Microsoft.VisualStudio.Modeling In-memory ModelElement instance that is currently being read.
reader global Reader for the file being read. The reader is positioned after the attributes of the specified element.
리턴 void

ReadRootElement() 보호된 메소드

Read an element from the root of XML.
protected ReadRootElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling rootElement, global reader, global::Microsoft.VisualStudio.Modeling schemaResolver ) : void
serializationContext global::Microsoft.VisualStudio.Modeling Serialization context.
rootElement global::Microsoft.VisualStudio.Modeling In-memory element instance that will get the deserialized data.
reader global XmlReader to read serialized data from.
schemaResolver global::Microsoft.VisualStudio.Modeling An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it).
리턴 void

ResolveSchema() 보호된 정적인 메소드

Attempts to resolve the supplied schema namespace
If the schema can be resolved it is added to the supplied schema set. Otherwise, a warning will be written to serializationContext.
protected static ResolveSchema ( string targetNamespace, global schemaSet, global::Microsoft.VisualStudio.Modeling schemaResolver, global reader, global::Microsoft.VisualStudio.Modeling serializationContext ) : bool
targetNamespace string
schemaSet global
schemaResolver global::Microsoft.VisualStudio.Modeling
reader global
serializationContext global::Microsoft.VisualStudio.Modeling
리턴 bool

SaveDiagram() 공개 메소드

Saves the given diagram to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.
public SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, OrmLanguageDiagram diagram, string diagramFileName ) : void
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the save operation.
diagram OrmLanguageDiagram OrmLanguageDiagram to be saved.
diagramFileName string Name of the file in which the diagram will be saved.
리턴 void

SaveDiagram() 공개 메소드

Saves the given diagram to the given file, with default encoding (UTF-8).
public SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, OrmLanguageDiagram diagram, string diagramFileName, bool writeOptionalPropertiesWithDefaultValue ) : void
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the save operation.
diagram OrmLanguageDiagram OrmLanguageDiagram to be saved.
diagramFileName string Name of the file in which the diagram will be saved.
writeOptionalPropertiesWithDefaultValue bool Whether optional properties with default value will be saved.
리턴 void

SaveModel() 공개 메소드

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 SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string fileName ) : void
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the save operation.
modelRoot SampleOrmModel SampleOrmModel instance to be saved.
fileName string Name of the file in which the SampleOrmModel instance will be saved.
리턴 void

SaveModel() 공개 메소드

Saves the given model to the given file, with default encoding (UTF-8).
public SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string fileName, bool writeOptionalPropertiesWithDefaultValue ) : void
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the save operation.
modelRoot SampleOrmModel SampleOrmModel instance to be saved.
fileName string Name of the file in which the SampleOrmModel instance will be saved.
writeOptionalPropertiesWithDefaultValue bool Whether optional properties with default value will be saved.
리턴 void

SaveModelAndDiagram() 공개 메소드

Saves the given diagram to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.
public SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string modelFileName, OrmLanguageDiagram diagram, string diagramFileName ) : void
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the save operation.
modelRoot SampleOrmModel SampleOrmModel instance to be saved.
modelFileName string Name of the file in which the CanonicalSampleRoot instance will be saved.
diagram OrmLanguageDiagram OrmLanguageDiagram to be saved.
diagramFileName string Name of the file in which the diagram will be saved.
리턴 void

SaveModelAndDiagram() 공개 메소드

Saves the given diagram to the given file, with default encoding (UTF-8).
public SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, SampleOrmModel modelRoot, string modelFileName, OrmLanguageDiagram diagram, string diagramFileName, bool writeOptionalPropertiesWithDefaultValue ) : void
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the save operation.
modelRoot SampleOrmModel SampleOrmModel instance to be saved.
modelFileName string Name of the file in which the CanonicalSampleRoot instance will be saved.
diagram OrmLanguageDiagram OrmLanguageDiagram to be saved.
diagramFileName string Name of the file in which the diagram will be saved.
writeOptionalPropertiesWithDefaultValue bool Whether optional properties with default value will be saved.
리턴 void

TryCreateValidatingReader() 보호된 메소드

Attempts to return a validating XML reader
protected TryCreateValidatingReader ( global::Microsoft.VisualStudio.Modeling schemaResolver, global reader, global::Microsoft.VisualStudio.Modeling serializationContext ) : global::System.Xml.XmlReader
schemaResolver global::Microsoft.VisualStudio.Modeling
reader global
serializationContext global::Microsoft.VisualStudio.Modeling
리턴 global::System.Xml.XmlReader

TryGetEncoding() 보호된 메소드

Attempts to return the encoding used by the reader.
The reader will be positioned at the start of the document when calling this method.
protected TryGetEncoding ( global reader, global &encoding ) : bool
reader global
encoding global
리턴 bool

WriteExtensions() 보호된 메소드

Write extension element data inside the current XML element
The default implemenation is to write out all non-embedded extension elements, regardless of whether they relate to the current element or not. The additional data should be written as a series of one or more XML elements.
protected WriteExtensions ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global writer ) : void
serializationContext global::Microsoft.VisualStudio.Modeling The current serialization context instance.
element global::Microsoft.VisualStudio.Modeling The element whose attributes have just been written.
writer global XmlWriter to write serialized data to.
리턴 void

WriteRootElement() 공개 메소드

Write an element as the root of XML.
public WriteRootElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling rootElement, global writer ) : void
serializationContext global::Microsoft.VisualStudio.Modeling Serialization context.
rootElement global::Microsoft.VisualStudio.Modeling Root element instance that will be serialized.
writer global XmlWriter to write serialized data to.
리턴 void