SerializeReference Method

BaseShapeMapReferencesBaseShapeSerializer.SerializeReference Method

Calculates a monikerized string reference to a BaseShape.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll)

public override string SerializeReference(
	SerializationContext serializationContext,
	ModelElement sourceElement,
	ModelElement targetElement
)

Parameters

serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext

Serialization context.

sourceElement
Type: Microsoft.VisualStudio.Modeling.ModelElement

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

targetElement
Type: Microsoft.VisualStudio.Modeling.ModelElement

Target side of relationship that will be serialized.

Return Value

Type: String
A monikerized string reference to target element.

Show:
© 2016 Microsoft