Partager 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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Déclaration
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(PresentationElement, ModelElement) instead.

.NET Framework Security

See Also

Reference

PresentationViewsSubject Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace