Partager via


RoleAssignment Constructor (Guid, ModelElement)

Initializes a new instance of the RoleAssignment class given an element that plays the role.

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

Syntax

'Déclaration
Public Sub New ( _
    domainRoleId As Guid, _
    rolePlayer As ModelElement _
)
public RoleAssignment(
    Guid domainRoleId,
    ModelElement rolePlayer
)
public:
RoleAssignment(
    Guid domainRoleId, 
    ModelElement^ rolePlayer
)
new : 
        domainRoleId:Guid * 
        rolePlayer:ModelElement -> RoleAssignment
public function RoleAssignment(
    domainRoleId : Guid, 
    rolePlayer : ModelElement
)

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