DomainRoleInfo.SetLinkedElement Method (ModelElement, Guid, ModelElement)
Sets the link role player on the other side of the 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 SetLinkedElement ( _
rolePlayerElement As ModelElement, _
domainRoleId As Guid, _
linkedElement As ModelElement _
)
public static void SetLinkedElement(
ModelElement rolePlayerElement,
Guid domainRoleId,
ModelElement linkedElement
)
public:
static void SetLinkedElement(
ModelElement^ rolePlayerElement,
Guid domainRoleId,
ModelElement^ linkedElement
)
static member SetLinkedElement :
rolePlayerElement:ModelElement *
domainRoleId:Guid *
linkedElement:ModelElement -> unit
public static function SetLinkedElement(
rolePlayerElement : ModelElement,
domainRoleId : Guid,
linkedElement : ModelElement
)
Parameters
rolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element playing a role
domainRoleId
Type: GuidThe role played by the element.
linkedElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element on the other side of relationship.
.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.