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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
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.ModelElement
The element playing the role.
- 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
- 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.