Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets a specified role player on a link.
Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Shared Sub SetRolePlayerMoniker ( _
    link As ElementLink, _
    domainRoleId As Guid, _
    rolePlayerMoniker As Moniker _
)
public static void SetRolePlayerMoniker(
    ElementLink link,
    Guid domainRoleId,
    Moniker rolePlayerMoniker
)
public:
static void SetRolePlayerMoniker(
    ElementLink^ link, 
    Guid domainRoleId, 
    Moniker^ rolePlayerMoniker
)
static member SetRolePlayerMoniker : 
        link:ElementLink * 
        domainRoleId:Guid * 
        rolePlayerMoniker:Moniker -> unit
public static function SetRolePlayerMoniker(
    link : ElementLink, 
    domainRoleId : Guid, 
    rolePlayerMoniker : Moniker
)
Parameters
- link 
 Type: Microsoft.VisualStudio.Modeling.ElementLink- The element link. 
- domainRoleId 
 Type: System.Guid- The domain role to set the role player for. 
- rolePlayerMoniker 
 Type: Microsoft.VisualStudio.Modeling.Moniker- The new role player moniker for this role. 
.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.