Sets the element on the other side of the relationship.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub SetLinkedElement ( _
rolePlayerElement As ModelElement, _
linkedElement As ModelElement _
)
'使用
Dim instance As DomainRoleInfo
Dim rolePlayerElement As ModelElement
Dim linkedElement As ModelElement
instance.SetLinkedElement(rolePlayerElement, _
linkedElement)
public void SetLinkedElement(
ModelElement rolePlayerElement,
ModelElement linkedElement
)
public:
void SetLinkedElement(
ModelElement^ rolePlayerElement,
ModelElement^ linkedElement
)
public function SetLinkedElement(
rolePlayerElement : ModelElement,
linkedElement : ModelElement
)
Parameters
rolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element playing this role.
linkedElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element playing the opposite role in the domain relationship.
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.