Partilhar via


RoleAssignment Constructors

Definition

Overloads

RoleAssignment(Guid, ModelElement)

Initializes a new instance of the RoleAssignment class.

RoleAssignment(Guid, Moniker)

Initializes a new instance of the RoleAssignment class.

RoleAssignment(Guid, ModelElement, Int32)

Initializes a new instance of the RoleAssignment class.

RoleAssignment(Guid, Moniker, Int32)

Initializes a new instance of the RoleAssignment class.

RoleAssignment(Guid, ModelElement)

Initializes a new instance of the RoleAssignment class.

public:
 RoleAssignment(Guid domainRoleId, Microsoft::VisualStudio::Modeling::ModelElement ^ rolePlayer);
[System.Diagnostics.DebuggerStepThrough]
public RoleAssignment (Guid domainRoleId, Microsoft.VisualStudio.Modeling.ModelElement rolePlayer);
[<System.Diagnostics.DebuggerStepThrough>]
new Microsoft.VisualStudio.Modeling.RoleAssignment : Guid * Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.RoleAssignment
Public Sub New (domainRoleId As Guid, rolePlayer As ModelElement)

Parameters

domainRoleId
Guid

The Id of domain role being assigned a role-player

rolePlayer
ModelElement

The element playing the role

Attributes

Exceptions

rolePlayer is null.

Applies to

RoleAssignment(Guid, Moniker)

Initializes a new instance of the RoleAssignment class.

public:
 RoleAssignment(Guid domainRoleId, Microsoft::VisualStudio::Modeling::Moniker ^ rolePlayer);
[System.Diagnostics.DebuggerStepThrough]
public RoleAssignment (Guid domainRoleId, Microsoft.VisualStudio.Modeling.Moniker rolePlayer);
[<System.Diagnostics.DebuggerStepThrough>]
new Microsoft.VisualStudio.Modeling.RoleAssignment : Guid * Microsoft.VisualStudio.Modeling.Moniker -> Microsoft.VisualStudio.Modeling.RoleAssignment
Public Sub New (domainRoleId As Guid, rolePlayer As Moniker)

Parameters

domainRoleId
Guid

The Id of domain role being assigned a role-player

rolePlayer
Moniker

The Moniker of the element playing the role

Attributes

Exceptions

rolePlayer is null.

Applies to

RoleAssignment(Guid, ModelElement, Int32)

Initializes a new instance of the RoleAssignment class.

public:
 RoleAssignment(Guid domainRoleId, Microsoft::VisualStudio::Modeling::ModelElement ^ rolePlayer, int linkIndex);
[System.Diagnostics.DebuggerStepThrough]
public RoleAssignment (Guid domainRoleId, Microsoft.VisualStudio.Modeling.ModelElement rolePlayer, int linkIndex);
[<System.Diagnostics.DebuggerStepThrough>]
new Microsoft.VisualStudio.Modeling.RoleAssignment : Guid * Microsoft.VisualStudio.Modeling.ModelElement * int -> Microsoft.VisualStudio.Modeling.RoleAssignment
Public Sub New (domainRoleId As Guid, rolePlayer As ModelElement, linkIndex As Integer)

Parameters

domainRoleId
Guid

The Id of domain role being assigned a role-player

rolePlayer
ModelElement

The element playing the role

linkIndex
Int32

The index of the element link in the role-player' list of links

Attributes

Exceptions

rolePlayer is null.

lineIndex is less than -1.

Applies to

RoleAssignment(Guid, Moniker, Int32)

Initializes a new instance of the RoleAssignment class.

public:
 RoleAssignment(Guid domainRoleId, Microsoft::VisualStudio::Modeling::Moniker ^ rolePlayer, int linkIndex);
[System.Diagnostics.DebuggerStepThrough]
public RoleAssignment (Guid domainRoleId, Microsoft.VisualStudio.Modeling.Moniker rolePlayer, int linkIndex);
[<System.Diagnostics.DebuggerStepThrough>]
new Microsoft.VisualStudio.Modeling.RoleAssignment : Guid * Microsoft.VisualStudio.Modeling.Moniker * int -> Microsoft.VisualStudio.Modeling.RoleAssignment
Public Sub New (domainRoleId As Guid, rolePlayer As Moniker, linkIndex As Integer)

Parameters

domainRoleId
Guid

The Id of domain role being assigned a role-player

rolePlayer
Moniker

The Moniker of the element playing the role

linkIndex
Int32

The index of the element link in the role-player' list of links

Attributes

Exceptions

rolePlayer is null.

lineIndex is less than -1.

Applies to