DomainRoleInfo.GetElementLinks<T> Generic Method (ModelElement)

Gets a list of elements that are linked to a role.

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

Syntax

'宣言
Public Function GetElementLinks(Of T As ElementLink) ( _
    rolePlayerElement As ModelElement _
) As ReadOnlyCollection(Of T)
'使用
Dim instance As DomainRoleInfo
Dim rolePlayerElement As ModelElement
Dim returnValue As ReadOnlyCollection(Of T)

returnValue = instance.GetElementLinks(rolePlayerElement)
public ReadOnlyCollection<T> GetElementLinks<T>(
    ModelElement rolePlayerElement
) where T : ElementLink
public:
generic<typename T>
where T : ElementLink
ReadOnlyCollection<T>^ GetElementLinks(
    ModelElement^ rolePlayerElement
)
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

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

A ReadOnlyCollection<T> of links.

Permissions

See Also

Reference

DomainRoleInfo Class

DomainRoleInfo Members

GetElementLinks Overload

Microsoft.VisualStudio.Modeling Namespace