DomainRoleImplementedByCollectionTypeSerializer.SerializeReference Method
Calculates a monikerized string reference to a ExternalType.
Namespace: Microsoft.VisualStudio.Modeling.DslDefinition
Assembly: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)
Syntax
声明
Public Overrides Function SerializeReference ( _
serializationContext As SerializationContext, _
sourceElement As ModelElement, _
targetElement As ModelElement _
) As String
public override string SerializeReference(
SerializationContext serializationContext,
ModelElement sourceElement,
ModelElement targetElement
)
public:
virtual String^ SerializeReference(
SerializationContext^ serializationContext,
ModelElement^ sourceElement,
ModelElement^ targetElement
) override
abstract SerializeReference :
serializationContext:SerializationContext *
sourceElement:ModelElement *
targetElement:ModelElement -> string
override SerializeReference :
serializationContext:SerializationContext *
sourceElement:ModelElement *
targetElement:ModelElement -> string
public override function SerializeReference(
serializationContext : SerializationContext,
sourceElement : ModelElement,
targetElement : ModelElement
) : String
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: System.String
A monikerized string reference to target element.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.