PresentationViewsSubject.GetLinks Method
Get any PresentationViewsSubject links between a given PresentationElement and a ModelElement.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
Public Shared Function GetLinks ( _
source As PresentationElement, _
target As ModelElement _
) As ReadOnlyCollection(Of PresentationViewsSubject)
public static ReadOnlyCollection<PresentationViewsSubject> GetLinks(
PresentationElement source,
ModelElement target
)
public:
static ReadOnlyCollection<PresentationViewsSubject^>^ GetLinks(
PresentationElement^ source,
ModelElement^ target
)
static member GetLinks :
source:PresentationElement *
target:ModelElement -> ReadOnlyCollection<PresentationViewsSubject>
public static function GetLinks(
source : PresentationElement,
target : ModelElement
) : ReadOnlyCollection<PresentationViewsSubject>
Parameters
- target
Type: Microsoft.VisualStudio.Modeling.ModelElement
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<PresentationViewsSubject>
Remarks
There should not be more than one link of this relationship between two objects. Use GetLink(PresentationElement, ModelElement) instead.
.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.