BaseShapeMapReferencesBaseShapeSerializer.TryCreateDerivedInstance Method (SerializationContext, XmlReader, Partition)

 

This method creates a correct derived instance of BaseShapeMapReferencesBaseShape based on the tag currently pointed by the reader. Note that the difference between this method and the above one is that this method will never create an instance of the BaseShapeMapReferencesBaseShape type itself, only derived types are checked.

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

public override ElementLink TryCreateDerivedInstance(
	SerializationContext serializationContext,
	XmlReader reader,
	Partition partition
)

Parameters

serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext

Serialization context.

reader
Type: System.Xml.XmlReader

XmlReader to read serialized data from.

partition
Type: Microsoft.VisualStudio.Modeling.Partition

Partition in which new elements should be created.

Return Value

Type: Microsoft.VisualStudio.Modeling.ElementLink

Created instance that derives from BaseShapeMapReferencesBaseShape, or null if the reader is not pointing to such a serialized instance.

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

Return to top
Show: