BinaryLinkShapeSerializer.UseRelationshipId Method
Calculate whether the BinaryLinkShape should serialize its relationship to the presented link using an Id or its source and target shapes.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
Protected Function UseRelationshipId ( _
link As ElementLink, _
serializationContext As SerializationContext _
) As Boolean
protected bool UseRelationshipId(
ElementLink link,
SerializationContext serializationContext
)
protected:
bool UseRelationshipId(
ElementLink^ link,
SerializationContext^ serializationContext
)
member UseRelationshipId :
link:ElementLink *
serializationContext:SerializationContext -> bool
protected function UseRelationshipId(
link : ElementLink,
serializationContext : SerializationContext
) : boolean
Parameters
- link
Type: Microsoft.VisualStudio.Modeling.ElementLink
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
Return Value
Type: System.Boolean
Remarks
Calculate whether the BinaryLinkShape should serialize its relationship to the presented link by using an ID or its source and target shapes.
.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.