Share via


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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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

Return Value

Type: ReadOnlyCollection<PresentationViewsSubject>

Remarks

There should not be more than one link of this relationship between two objects. Use GetLink instead.

.NET Framework Security

See Also

Reference

PresentationViewsSubject Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace