AttributedDomainElementSerializer.CreateInstance Method

This method creates an instance of AttributedDomainElement based on the tag currently pointed by the reader. The reader is guaranteed (by the caller) to be pointed at a serialized instance of AttributedDomainElement.

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

protected override ModelElement CreateInstance(
	SerializationContext serializationContext,
	XmlReader reader,
	Partition partition


Type: Microsoft.VisualStudio.Modeling.SerializationContext

Serialization context.

Type: XmlReader

XmlReader to read serialized data from.

Type: Microsoft.VisualStudio.Modeling.Partition

Partition in which new AttributedDomainElement instance should be created.

Return Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
Created AttributedDomainElement instance.

The caller will guarantee that the reader is positioned at open XML tag of the ModelRoot instance being read. This method should not move the reader; the reader should remain at the same position when this method returns.