Udostępnij za pośrednictwem


DomainRoleInfo.SetRolePlayer Method

Definition

Overloads

SetRolePlayer(ElementLink, ModelElement)

Sets link role player corresponding to this role.

SetRolePlayer(ElementLink, Guid, ModelElement)

Sets specified role player on a link.

Sets link role player corresponding to this role.

public:
 void SetRolePlayer(Microsoft::VisualStudio::Modeling::ElementLink ^ link, Microsoft::VisualStudio::Modeling::ModelElement ^ newRolePlayerElement);
public void SetRolePlayer (Microsoft.VisualStudio.Modeling.ElementLink link, Microsoft.VisualStudio.Modeling.ModelElement newRolePlayerElement);
member this.SetRolePlayer : Microsoft.VisualStudio.Modeling.ElementLink * Microsoft.VisualStudio.Modeling.ModelElement -> unit
Public Sub SetRolePlayer (link As ElementLink, newRolePlayerElement As ModelElement)

Parameters

link
ElementLink

Element link.

newRolePlayerElement
ModelElement

New role player for this role.

Applies to

Sets specified role player on a link.

public:
 static void SetRolePlayer(Microsoft::VisualStudio::Modeling::ElementLink ^ link, Guid domainRoleId, Microsoft::VisualStudio::Modeling::ModelElement ^ newRolePlayerElement);
public static void SetRolePlayer (Microsoft.VisualStudio.Modeling.ElementLink link, Guid domainRoleId, Microsoft.VisualStudio.Modeling.ModelElement newRolePlayerElement);
static member SetRolePlayer : Microsoft.VisualStudio.Modeling.ElementLink * Guid * Microsoft.VisualStudio.Modeling.ModelElement -> unit
Public Shared Sub SetRolePlayer (link As ElementLink, domainRoleId As Guid, newRolePlayerElement As ModelElement)

Parameters

link
ElementLink

Element link.

domainRoleId
Guid

Domain role to set role player for.

newRolePlayerElement
ModelElement

New role player.

Applies to