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
rolePlayerElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element playing the role.
domainRoleId
Type: System.GuidID of the role played by the element.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<T>
A ReadOnlyCollection<T> of links.
.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.