Share via


RoleAssignment Constructor (Guid, ModelElement, Int32)

Initializes a new instance of the RoleAssignment class.

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

Syntax

'Declaration
Public Sub New ( _
    domainRoleId As Guid, _
    rolePlayer As ModelElement, _
    linkIndex As Integer _
)
public RoleAssignment(
    Guid domainRoleId,
    ModelElement rolePlayer,
    int linkIndex
)
public:
RoleAssignment(
    Guid domainRoleId, 
    ModelElement^ rolePlayer, 
    int linkIndex
)
new : 
        domainRoleId:Guid * 
        rolePlayer:ModelElement * 
        linkIndex:int -> RoleAssignment
public function RoleAssignment(
    domainRoleId : Guid, 
    rolePlayer : ModelElement, 
    linkIndex : int
)

Parameters

  • domainRoleId
    Type: Guid

    The ID of the domain role.

  • linkIndex
    Type: Int32

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

.NET Framework Security

See Also

Reference

RoleAssignment Class

RoleAssignment Overload

Microsoft.VisualStudio.Modeling Namespace