RoleAssignment Constructor (Guid, ModelElement, Int32)

Initializes a new instance of the RoleAssignment class.

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

Syntax

'宣言
Public Sub New ( _
    domainRoleId As Guid, _
    rolePlayer As ModelElement, _
    linkIndex As Integer _
)
'使用
Dim domainRoleId As Guid
Dim rolePlayer As ModelElement
Dim linkIndex As Integer

Dim instance As New RoleAssignment(domainRoleId, _
    rolePlayer, linkIndex)
public RoleAssignment(
    Guid domainRoleId,
    ModelElement rolePlayer,
    int linkIndex
)
public:
RoleAssignment(
    Guid domainRoleId, 
    ModelElement^ rolePlayer, 
    int linkIndex
)
public function RoleAssignment(
    domainRoleId : Guid, 
    rolePlayer : ModelElement, 
    linkIndex : int
)

Parameters

  • domainRoleId
    Type: System.Guid

    The ID of the domain role.

  • linkIndex
    Type: System.Int32

    The index of the element link in the list of links for the role.

Permissions

See Also

Reference

RoleAssignment Class

RoleAssignment Members

RoleAssignment Overload

Microsoft.VisualStudio.Modeling Namespace