Delen 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.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

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

See Also

Reference

PresentationViewsSubject Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace