Share via


RelationshipHasRolesSerializer.CreateInstance Method

Definition

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

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

Returns

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