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.
Initializes a new instance of the RoleAssignment class.
Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
    domainRoleId As Guid, _
    rolePlayer As Moniker, _
    linkIndex As Integer _
)
public RoleAssignment(
    Guid domainRoleId,
    Moniker rolePlayer,
    int linkIndex
)
public:
RoleAssignment(
    Guid domainRoleId, 
    Moniker^ rolePlayer, 
    int linkIndex
)
new : 
        domainRoleId:Guid * 
        rolePlayer:Moniker * 
        linkIndex:int -> RoleAssignment
public function RoleAssignment(
    domainRoleId : Guid, 
    rolePlayer : Moniker, 
    linkIndex : int
)
Parameters
domainRoleId
Type: System.GuidThe ID of the domain role.
rolePlayer
Type: Microsoft.VisualStudio.Modeling.MonikerThe moniker that is assigned to the role.
linkIndex
Type: System.Int32The index of the element link in the list of links for the 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.