共用方式為


DomainRoleInfo.GetElementLinksToElement Method (ModelElement, ModelElement)

Gets the links between a source and a target element.

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

Syntax

'宣告
Public Function GetElementLinksToElement ( _
    sourceRolePlayerElement As ModelElement, _
    targetRolePlayerElement As ModelElement _
) As ReadOnlyCollection(Of ElementLink)
public ReadOnlyCollection<ElementLink> GetElementLinksToElement(
    ModelElement sourceRolePlayerElement,
    ModelElement targetRolePlayerElement
)
public:
ReadOnlyCollection<ElementLink^>^ GetElementLinksToElement(
    ModelElement^ sourceRolePlayerElement, 
    ModelElement^ targetRolePlayerElement
)
member GetElementLinksToElement : 
        sourceRolePlayerElement:ModelElement * 
        targetRolePlayerElement:ModelElement -> ReadOnlyCollection<ElementLink> 
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.

.NET Framework Security

See Also

Reference

DomainRoleInfo Class

GetElementLinksToElement Overload

Microsoft.VisualStudio.Modeling Namespace