Gets a collection of links between a source and target role.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Function GetElementLinksToElement(Of T As ElementLink) ( _
sourceRolePlayerElement As ModelElement, _
targetRolePlayerElement As ModelElement, _
excludeDerivedRolesLinks As Boolean _
) As ReadOnlyCollection(Of T)
'Usage
Dim instance As DomainRoleInfo
Dim sourceRolePlayerElement As ModelElement
Dim targetRolePlayerElement As ModelElement
Dim excludeDerivedRolesLinks As Boolean
Dim returnValue As ReadOnlyCollection(Of T)
returnValue = instance.GetElementLinksToElement(sourceRolePlayerElement, _
targetRolePlayerElement, excludeDerivedRolesLinks)
public ReadOnlyCollection<T> GetElementLinksToElement<T>(
ModelElement sourceRolePlayerElement,
ModelElement targetRolePlayerElement,
bool excludeDerivedRolesLinks
)
where T : ElementLink
public:
generic<typename T>
where T : ElementLink
ReadOnlyCollection<T>^ GetElementLinksToElement(
ModelElement^ sourceRolePlayerElement,
ModelElement^ targetRolePlayerElement,
bool excludeDerivedRolesLinks
)
JScript does not support generic types or methods.
Type Parameters
- T
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<T>
The links between the source and 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.