共用方式為


DomainClassXmlSerializer.CreateMonikerInstance Method

Definition

With the given XmlReader, create an Moniker instance in the given Store. Note: This method is only called by TryCreateMonikerInstance() method once it determines the correct ModelElement moniker to create.

protected:
 virtual Microsoft::VisualStudio::Modeling::Moniker ^ CreateMonikerInstance(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, System::Xml::XmlReader ^ reader, Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayer, Guid relDomainClassId, Microsoft::VisualStudio::Modeling::Partition ^ partition);
protected virtual Microsoft.VisualStudio.Modeling.Moniker CreateMonikerInstance (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, System.Xml.XmlReader reader, Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayer, Guid relDomainClassId, Microsoft.VisualStudio.Modeling.Partition partition);
abstract member CreateMonikerInstance : Microsoft.VisualStudio.Modeling.SerializationContext * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.ModelElement * Guid * Microsoft.VisualStudio.Modeling.Partition -> Microsoft.VisualStudio.Modeling.Moniker
override this.CreateMonikerInstance : Microsoft.VisualStudio.Modeling.SerializationContext * System.Xml.XmlReader * Microsoft.VisualStudio.Modeling.ModelElement * Guid * Microsoft.VisualStudio.Modeling.Partition -> Microsoft.VisualStudio.Modeling.Moniker
Protected Overridable Function CreateMonikerInstance (serializationContext As SerializationContext, reader As XmlReader, sourceRolePlayer As ModelElement, relDomainClassId As Guid, partition As Partition) As Moniker

Parameters

serializationContext
SerializationContext

Serialization context.

reader
XmlReader

XmlReader to read serialized data from.

sourceRolePlayer
ModelElement

The source role-player ModelElement from which the moniker being created is referenced.

relDomainClassId
Guid

The DomainClass Id of the relationship that connects the sourceRolePlayer to the moniker being created.

partition
Partition

The new Moniker should be created in the Store associated with this partition.

Returns

The created moniker, or null if the reader is not pointing to a correct monikerized instance.

Applies to