DomainRoleInfo.SetRolePlayer Method (ElementLink, Guid, ModelElement)
Assigns an element to a role in a relationship.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.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.ElementLink
The element link.
- domainRoleId
Type: System.Guid
Domain role to set role player for.
- newRolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
The 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.