Gets the target element that is attached to a link.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Shared Function GetTargetRolePlayer ( _
link As ElementLink _
) As ModelElement
'使用
Dim link As ElementLink
Dim returnValue As ModelElement
returnValue = DomainRoleInfo.GetTargetRolePlayer(link)
public static ModelElement GetTargetRolePlayer(
ElementLink link
)
public:
static ModelElement^ GetTargetRolePlayer(
ElementLink^ link
)
public static function GetTargetRolePlayer(
link : ElementLink
) : ModelElement
Parameters
link
Type: Microsoft.VisualStudio.Modeling.ElementLinkThe link.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
The target element that is attached to a link.
Permissions
- 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.