Share via


CompartmentShapeSerializer.CreateInstance Method

Definition

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

protected:
 override Microsoft::VisualStudio::Modeling::ModelElement ^ CreateInstance(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, System::Xml::XmlReader ^ reader, Microsoft::VisualStudio::Modeling::Partition ^ partition);
protected override Microsoft.VisualStudio.Modeling.ModelElement CreateInstance (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, System.Xml.XmlReader reader, Microsoft.VisualStudio.Modeling.Partition partition);
override this.CreateInstance : Microsoft.VisualStudio.Modeling.SerializationContext * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.Partition -> Microsoft.VisualStudio.Modeling.ModelElement
Protected Overrides Function CreateInstance (serializationContext As SerializationContext, reader As XmlReader, partition As Partition) As ModelElement

Parameters

serializationContext
SerializationContext

Serialization context.

reader
XmlReader

XmlReader to read serialized data from.

partition
Partition

Partition in which new CompartmentShape instance should be created.

Returns

Created CompartmentShape 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