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