Assigns an element to a role in a relationship.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Shared Sub SetRolePlayer ( _
link As ElementLink, _
domainRoleId As Guid, _
newRolePlayerElement As ModelElement _
)
'使用
Dim link As ElementLink
Dim domainRoleId As Guid
Dim newRolePlayerElement As ModelElement
DomainRoleInfo.SetRolePlayer(link, domainRoleId, _
newRolePlayerElement)
public static void SetRolePlayer(
ElementLink link,
Guid domainRoleId,
ModelElement newRolePlayerElement
)
public:
static void SetRolePlayer(
ElementLink^ link,
Guid domainRoleId,
ModelElement^ newRolePlayerElement
)
public static function SetRolePlayer(
link : ElementLink,
domainRoleId : Guid,
newRolePlayerElement : ModelElement
)
Parameters
link
Type: Microsoft.VisualStudio.Modeling.ElementLinkThe element link.
domainRoleId
Type: System.GuidDomain role to set role player for.
newRolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe new role player.
Permissions
- 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.