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
'Declaração
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
- presentationInstance
Type: Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.PresentationViewsSubject
Remarks
Usually you would use ModelElement to traverse the link in this direction.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
PresentationViewsSubject Class