Initializes a new instance of the RoleAssignment class given an element that plays the role.
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 _
)
'使用
Dim domainRoleId As Guid
Dim rolePlayer As ModelElement
Dim instance As New RoleAssignment(domainRoleId, _
rolePlayer)
public RoleAssignment(
Guid domainRoleId,
ModelElement rolePlayer
)
public:
RoleAssignment(
Guid domainRoleId,
ModelElement^ rolePlayer
)
public function RoleAssignment(
domainRoleId : Guid,
rolePlayer : ModelElement
)
Parameters
domainRoleId
Type: System.GuidThe ID of the domain role.
rolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element that is assigned to the role.
Permissions
- 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.