Gets the specified role player from a link.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Shared Function GetRolePlayer ( _
link As ElementLink, _
domainRoleId As Guid _
) As ModelElement
'使用
Dim link As ElementLink
Dim domainRoleId As Guid
Dim returnValue As ModelElement
returnValue = DomainRoleInfo.GetRolePlayer(link, _
domainRoleId)
public static ModelElement GetRolePlayer(
ElementLink link,
Guid domainRoleId
)
public:
static ModelElement^ GetRolePlayer(
ElementLink^ link,
Guid domainRoleId
)
public static function GetRolePlayer(
link : ElementLink,
domainRoleId : Guid
) : ModelElement
Parameters
link
Type: Microsoft.VisualStudio.Modeling.ElementLinkThe element link.
domainRoleId
Type: System.GuidThe domain role to get the role player for.
Return Value
Type: Microsoft.VisualStudio.Modeling.ModelElement
A ModelElement that is the role player.
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.