Freigeben über


RoleAssignment Class

Definition

Provides information required to initialize one side of an ElementLink.

public ref class RoleAssignment sealed
public sealed class RoleAssignment
type RoleAssignment = class
Public NotInheritable Class RoleAssignment
Inheritance
RoleAssignment

Constructors

RoleAssignment(Guid, ModelElement, Int32)

Initializes a new instance of the RoleAssignment class.

RoleAssignment(Guid, ModelElement)

Initializes a new instance of the RoleAssignment class.

RoleAssignment(Guid, Moniker, Int32)

Initializes a new instance of the RoleAssignment class.

RoleAssignment(Guid, Moniker)

Initializes a new instance of the RoleAssignment class.

Properties

DomainRoleId

Gets Id of the domain role that the role-player is playing.

LinkIndex

Gets the index of the element link in the role-player's list of links.

RolePlayer

Gets model element that is playing the role.

RolePlayerMoniker

Gets moniker of the element that is playing the role.

Methods

CreatePlaceholderRoleAssignment(Guid)

Special factory method to create a placeholder RoleAssignment. The assignment will contain no valid ModelElement/Moniker. It is used in special cases like serialization to create a temporary role assignment, which will then be replaced by a valid one later.

Applies to