DomainClassXmlSerializer.CreateInstance Method
Creates a model element instance.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
Protected Overridable Function CreateInstance ( _
serializationContext As SerializationContext, _
reader As XmlReader, _
partition As Partition _
) As ModelElement
protected virtual ModelElement CreateInstance(
SerializationContext serializationContext,
XmlReader reader,
Partition partition
)
protected:
virtual ModelElement^ CreateInstance(
SerializationContext^ serializationContext,
XmlReader^ reader,
Partition^ partition
)
abstract CreateInstance :
serializationContext:SerializationContext *
reader:XmlReader *
partition:Partition -> ModelElement
override CreateInstance :
serializationContext:SerializationContext *
reader:XmlReader *
partition:Partition -> ModelElement
protected function CreateInstance(
serializationContext : SerializationContext,
reader : XmlReader,
partition : Partition
) : ModelElement
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
The serialization context that stores serialization errors, if any.
- reader
Type: System.Xml.XmlReader
The XmlReader from which to read.
- partition
Type: Microsoft.VisualStudio.Modeling.Partition
The new element instance should be created in the store associated with this partition.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element instance.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.