DomainRoleInfo.GetElementLinksToElement Method (ModelElement, ModelElement, Boolean)
Gets the links between a source and target element.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Function GetElementLinksToElement ( _
sourceRolePlayerElement As ModelElement, _
targetRolePlayerElement As ModelElement, _
excludeDerivedRolesLinks As Boolean _
) As ReadOnlyCollection(Of ElementLink)
public ReadOnlyCollection<ElementLink> GetElementLinksToElement(
ModelElement sourceRolePlayerElement,
ModelElement targetRolePlayerElement,
bool excludeDerivedRolesLinks
)
public:
ReadOnlyCollection<ElementLink^>^ GetElementLinksToElement(
ModelElement^ sourceRolePlayerElement,
ModelElement^ targetRolePlayerElement,
bool excludeDerivedRolesLinks
)
member GetElementLinksToElement :
sourceRolePlayerElement:ModelElement *
targetRolePlayerElement:ModelElement *
excludeDerivedRolesLinks:bool -> ReadOnlyCollection<ElementLink>
public function GetElementLinksToElement(
sourceRolePlayerElement : ModelElement,
targetRolePlayerElement : ModelElement,
excludeDerivedRolesLinks : boolean
) : ReadOnlyCollection<ElementLink>
Parameters
sourceRolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe source element.
targetRolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe target element.
excludeDerivedRolesLinks
Type: System.Booleantrue to exclude links that are assigned to a child source or target element; otherwise, false.
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
- 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.