DomainRoleInfo.SetRolePlayerMoniker Method (ElementLink, Guid, Moniker)
Sets a specified role player on a link.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
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.