DomainRoleInfo.SetRolePlayerMoniker Method (ElementLink, Guid, Moniker)
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.ElementLinkThe element link.
domainRoleId
Type: System.GuidThe domain role to set the role player for.
rolePlayerMoniker
Type: Microsoft.VisualStudio.Modeling.MonikerThe 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.