共用方式為


ObjectToolReferencesClassSerializer.MonikerizeReference Method

Definition

Calculates a Moniker, given a reference to a DomainClass

public:
 override Microsoft::VisualStudio::Modeling::Moniker ^ MonikerizeReference(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ sourceElement, Guid domainClassId, System::String ^ monikerString, Microsoft::VisualStudio::Modeling::Store ^ store);
public override Microsoft.VisualStudio.Modeling.Moniker MonikerizeReference (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement sourceElement, Guid domainClassId, string monikerString, Microsoft.VisualStudio.Modeling.Store store);
override this.MonikerizeReference : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * Guid * string * Microsoft.VisualStudio.Modeling.Store -> Microsoft.VisualStudio.Modeling.Moniker
Public Overrides Function MonikerizeReference (serializationContext As SerializationContext, sourceElement As ModelElement, domainClassId As Guid, monikerString As String, store As Store) As Moniker

Parameters

serializationContext
SerializationContext

Serialization context.

sourceElement
ModelElement

Instance of ElementTool that contains the given serialized reference

domainClassId
Guid

DomainClassId of the model element that the given moniker string will be resolved to.

monikerString
String

Serialized string reference to an instance of DomainClass

store
Store

Store where the Moniker will be created

Returns

A Moniker encapsulating the serialized string reference of DomainClass instance

Applies to