Partager via


DomainRoleInfo.GetElementLinks<T> Method (ModelElement, Guid)

Gets element links when a given element plays a given role.

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

Syntax

'Declaration
Public Shared Function GetElementLinks(Of T As ElementLink) ( _
    rolePlayerElement As ModelElement, _
    domainRoleId As Guid _
) As ReadOnlyCollection(Of T)
public static ReadOnlyCollection<T> GetElementLinks<T>(
    ModelElement rolePlayerElement,
    Guid domainRoleId
)
where T : ElementLink
public:
generic<typename T>
where T : ElementLink 
static ReadOnlyCollection<T>^ GetElementLinks(
    ModelElement^ rolePlayerElement, 
    Guid domainRoleId
)
static member GetElementLinks : 
        rolePlayerElement:ModelElement * 
        domainRoleId:Guid -> ReadOnlyCollection<'T>  when 'T : ElementLink
JScript does not support generic types or methods.

Type Parameters

  • T
    Type of link.

Parameters

  • domainRoleId
    Type: System.Guid

    ID of the role played by the element.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<T>
A ReadOnlyCollection<T> of links.

.NET Framework Security

See Also

Reference

DomainRoleInfo Class

GetElementLinks Overload

Microsoft.VisualStudio.Modeling Namespace