Share via


ModelElement.GetRoleCollection<TCollection, TElement> Method (Guid)

Gets or creates the linked element collection

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

Syntax

'Declaration
Protected Function GetRoleCollection(Of TCollection As ReadOnlyLinkedElementCollection(Of TElement), TElement As ModelElement) ( _
    domainRoleId As Guid _
) As TCollection
protected TCollection GetRoleCollection<TCollection, TElement>(
    Guid domainRoleId
)
where TCollection : ReadOnlyLinkedElementCollection<TElement>
where TElement : ModelElement
protected:
generic<typename TCollection, typename TElement>
where TCollection : ReadOnlyLinkedElementCollection<TElement>
where TElement : ModelElement
TCollection GetRoleCollection(
    Guid domainRoleId
)
member GetRoleCollection : 
        domainRoleId:Guid -> 'TCollection  when 'TCollection : ReadOnlyLinkedElementCollection<'TElement> when 'TElement : ModelElement
JScript does not support generic types or methods.

Type Parameters

  • TCollection
    The collection type to instanciate
  • TElement
    The type for each of the elements in the collection

Parameters

  • domainRoleId
    Type: Guid

    The role id

Return Value

Type: TCollection

.NET Framework Security

See Also

Reference

ModelElement Class

GetRoleCollection Overload

Microsoft.VisualStudio.Modeling Namespace