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

Syntax

'Déclaration
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