共用方式為


RoleAssignment Constructor (Guid, Moniker)

Initializes a new instance of the RoleAssignment class.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣告
Public Sub New ( _
    domainRoleId As Guid, _
    rolePlayer As Moniker _
)
public RoleAssignment(
    Guid domainRoleId,
    Moniker rolePlayer
)
public:
RoleAssignment(
    Guid domainRoleId, 
    Moniker^ rolePlayer
)
new : 
        domainRoleId:Guid * 
        rolePlayer:Moniker -> RoleAssignment
public function RoleAssignment(
    domainRoleId : Guid, 
    rolePlayer : Moniker
)

Parameters

  • domainRoleId
    Type: System.Guid
    The ID of the domain role.

.NET Framework Security

See Also

Reference

RoleAssignment Class

RoleAssignment Overload

Microsoft.VisualStudio.Modeling Namespace