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
link
Type: Microsoft.VisualStudio.Modeling.ElementLinkThe element link.
domainRoleId
Type: GuidDomain role to set role player for.
newRolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe new role player.
.NET Framework Security
- 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.