CommentShapeSerializer::CreateInstance Method (SerializationContext^, XmlReader^, Partition^)

 

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

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

protected:
virtual ModelElement^ CreateInstance(
	SerializationContext^ serializationContext,
	XmlReader^ reader,
	Partition^ partition
) override

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 CommentShape instance should be created.

The caller will guarantee that the reader is positioned at an open XML tag of the ModelRoot instance that is 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: