다음을 통해 공유


ParentShapeHasRelativeChildShapesSerializer.TryCreateDerivedInstance Method

Definition

This method creates a correct derived instance of ParentShapeHasRelativeChildShapes 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 ParentShapeHasRelativeChildShapes type itself, only derived types are checked.

public:
 override Microsoft::VisualStudio::Modeling::ElementLink ^ TryCreateDerivedInstance(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, System::Xml::XmlReader ^ reader, Microsoft::VisualStudio::Modeling::Partition ^ partition);
public override Microsoft.VisualStudio.Modeling.ElementLink TryCreateDerivedInstance (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, System.Xml.XmlReader reader, Microsoft.VisualStudio.Modeling.Partition partition);
override this.TryCreateDerivedInstance : Microsoft.VisualStudio.Modeling.SerializationContext * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.Partition -> Microsoft.VisualStudio.Modeling.ElementLink
Public Overrides Function TryCreateDerivedInstance (serializationContext As SerializationContext, reader As XmlReader, partition As Partition) As ElementLink

Parameters

serializationContext
SerializationContext

Serialization context.

reader
XmlReader

XmlReader to read serialized data from.

partition
Partition

Partition in which new elements should be created.

Returns

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

Remarks

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.

Applies to