Share via


DomainRoleInfo.SetRolePlayer Method (ElementLink, Guid, ModelElement)

Assigns an element to a role in a relationship.

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

Syntax

'Declaration
Public Shared Sub SetRolePlayer ( _
    link As ElementLink, _
    domainRoleId As Guid, _
    newRolePlayerElement As ModelElement _
)
public static void SetRolePlayer(
    ElementLink link,
    Guid domainRoleId,
    ModelElement newRolePlayerElement
)
public:
static void SetRolePlayer(
    ElementLink^ link, 
    Guid domainRoleId, 
    ModelElement^ newRolePlayerElement
)
static member SetRolePlayer : 
        link:ElementLink * 
        domainRoleId:Guid * 
        newRolePlayerElement:ModelElement -> unit
public static function SetRolePlayer(
    link : ElementLink, 
    domainRoleId : Guid, 
    newRolePlayerElement : ModelElement
)

Parameters

  • domainRoleId
    Type: Guid

    Domain role to set role player for.

.NET Framework Security

See Also

Reference

DomainRoleInfo Class

SetRolePlayer Overload

Microsoft.VisualStudio.Modeling Namespace