DomainRelationshipXmlSerializer.SerializeReference Method

Definition

Calculates a monikerized string reference to the given target role-player instance.

public:
 virtual System::String ^ SerializeReference(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ sourceElement, Microsoft::VisualStudio::Modeling::ModelElement ^ targetElement);
public virtual string SerializeReference (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement sourceElement, Microsoft.VisualStudio.Modeling.ModelElement targetElement);
abstract member SerializeReference : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> string
override this.SerializeReference : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ModelElement -> string
Public Overridable 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