Compartilhar via


PresentationViewsSubjectSerializer.SerializeReference Method

Definition

Calculates a monikerized string reference to a ModelElement.

public:
 override System::String ^ SerializeReference(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ sourceElement, Microsoft::VisualStudio::Modeling::ModelElement ^ targetElement);
public override string SerializeReference (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement sourceElement, Microsoft.VisualStudio.Modeling.ModelElement targetElement);
override this.SerializeReference : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> string
Public Overrides Function SerializeReference (serializationContext As SerializationContext, sourceElement As ModelElement, targetElement As ModelElement) As String

Parameters

serializationContext
SerializationContext

Serialization context.

sourceElement
ModelElement

Source side of reference relationship. The referenced target element will be serialized.

targetElement
ModelElement

Target side of relationship that will be serialized.

Returns

A monikerized string reference to target element.

Applies to