Gets element links when a given element plays this 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, _
excludeDerivedRolesLinks As Boolean _
) As ReadOnlyCollection(Of T)
'使用
Dim instance As DomainRoleInfo
Dim rolePlayerElement As ModelElement
Dim excludeDerivedRolesLinks As Boolean
Dim returnValue As ReadOnlyCollection(Of T)
returnValue = instance.GetElementLinks(rolePlayerElement, _
excludeDerivedRolesLinks)
public ReadOnlyCollection<T> GetElementLinks<T>(
ModelElement rolePlayerElement,
bool excludeDerivedRolesLinks
) where T : ElementLink
public:
generic<typename T>
where T : ElementLink
ReadOnlyCollection<T>^ GetElementLinks(
ModelElement^ rolePlayerElement,
bool excludeDerivedRolesLinks
)
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
rolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element playing this role.
excludeDerivedRolesLinks
Type: System.BooleanDetermines whether to exclude links that are attached to derived role players.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<T>
A ReadOnlyCollection<T> of links
Permissions
- 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.