DomainRoleInfo.GetElementLinksToElement Method (ModelElement, ModelElement)

Gets the links between a source and a target element.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Function GetElementLinksToElement ( _
    sourceRolePlayerElement As ModelElement, _
    targetRolePlayerElement As ModelElement _
) As ReadOnlyCollection(Of ElementLink)
'使用
Dim instance As DomainRoleInfo
Dim sourceRolePlayerElement As ModelElement
Dim targetRolePlayerElement As ModelElement
Dim returnValue As ReadOnlyCollection(Of ElementLink)

returnValue = instance.GetElementLinksToElement(sourceRolePlayerElement, _
    targetRolePlayerElement)
public ReadOnlyCollection<ElementLink> GetElementLinksToElement(
    ModelElement sourceRolePlayerElement,
    ModelElement targetRolePlayerElement
)
public:
ReadOnlyCollection<ElementLink^>^ GetElementLinksToElement(
    ModelElement^ sourceRolePlayerElement, 
    ModelElement^ targetRolePlayerElement
)
public function GetElementLinksToElement(
    sourceRolePlayerElement : ModelElement, 
    targetRolePlayerElement : ModelElement
) : ReadOnlyCollection<ElementLink>

Parameters

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ElementLink>

The links between the source and the target element.

Remarks

Child links are also returned.

Permissions

See Also

Reference

DomainRoleInfo Class

DomainRoleInfo Members

GetElementLinksToElement Overload

Microsoft.VisualStudio.Modeling Namespace