DiagramSerializer.CreateInstance Method

Definition

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

protected:
 override Microsoft::VisualStudio::Modeling::ModelElement ^ CreateInstance(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, System::Xml::XmlReader ^ reader, Microsoft::VisualStudio::Modeling::Partition ^ partition);

Parameters

serializationContext
SerializationContext

Serialization context.

reader
XmlReader

XmlReader to read serialized data from.

partition
Partition

Partition in which new Diagram instance should be created.

Returns

Created Diagram instance.

Remarks

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.

Applies to