DomainRoleInfo.GetRolePlayer Method (ElementLink, Guid)

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

  • 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.

Permissions

See Also

Reference

DomainRoleInfo Class

DomainRoleInfo Members

GetRolePlayer Overload

Microsoft.VisualStudio.Modeling Namespace