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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
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 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.