Partager via


PresentationViewsSubject.GetLinkToSubject Method

Get the PresentationViewsSubject link from a PresentationElement to the domain model element that it displays. You can also use PresentationElement.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 GetLinkToSubject ( _
    presentationInstance As PresentationElement _
) As PresentationViewsSubject
public static PresentationViewsSubject GetLinkToSubject(
    PresentationElement presentationInstance
)
public:
static PresentationViewsSubject^ GetLinkToSubject(
    PresentationElement^ presentationInstance
)
static member GetLinkToSubject : 
        presentationInstance:PresentationElement -> PresentationViewsSubject
public static function GetLinkToSubject(
    presentationInstance : PresentationElement
) : PresentationViewsSubject

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.PresentationViewsSubject

Remarks

Usually you would use ModelElement to traverse the link in this direction.

.NET Framework Security

See Also

Reference

PresentationViewsSubject Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

ModelElement