Compartilhar via


ModelElement.GetRoleCollection Method

Definition

Overloads

GetRoleCollection<TCollection,TElement>(Guid)

Gets or creates the linked element collection

GetRoleCollection<TCollection,TElement>(ModelElement, Guid)

Gets or creates the linked element collection

GetRoleCollection<TCollection,TElement>(Guid)

Gets or creates the linked element collection

protected:
generic <typename TCollection, typename TElement>
 where TCollection : Microsoft::VisualStudio::Modeling::ReadOnlyLinkedElementCollection<TElement> where TElement : Microsoft::VisualStudio::Modeling::ModelElement TCollection GetRoleCollection(Guid domainRoleId);
protected TCollection GetRoleCollection<TCollection,TElement> (Guid domainRoleId) where TCollection : Microsoft.VisualStudio.Modeling.ReadOnlyLinkedElementCollection<TElement> where TElement : Microsoft.VisualStudio.Modeling.ModelElement;
member this.GetRoleCollection : Guid -> 'Collection (requires 'Collection :> Microsoft.VisualStudio.Modeling.ReadOnlyLinkedElementCollection<'Element> and 'Element :> Microsoft.VisualStudio.Modeling.ModelElement)
Protected Function GetRoleCollection(Of TCollection As ReadOnlyLinkedElementCollection(Of TElement), TElement As ReadOnlyLinkedElementCollection(Of TElement)) (domainRoleId As Guid) As TCollection

Type Parameters

TCollection

The collection type to instanciate

TElement

The type for each of the elements in the collection

Parameters

domainRoleId
Guid

The role id

Returns

TCollection

A linked element collection using the source role id domainRoleId

Applies to

GetRoleCollection<TCollection,TElement>(ModelElement, Guid)

Gets or creates the linked element collection

protected:
generic <typename TCollection, typename TElement>
 where TCollection : Microsoft::VisualStudio::Modeling::ReadOnlyLinkedElementCollection<TElement> where TElement : Microsoft::VisualStudio::Modeling::ModelElement static TCollection GetRoleCollection(Microsoft::VisualStudio::Modeling::ModelElement ^ modelElement, Guid domainRoleId);
protected static TCollection GetRoleCollection<TCollection,TElement> (Microsoft.VisualStudio.Modeling.ModelElement modelElement, Guid domainRoleId) where TCollection : Microsoft.VisualStudio.Modeling.ReadOnlyLinkedElementCollection<TElement> where TElement : Microsoft.VisualStudio.Modeling.ModelElement;
static member GetRoleCollection : Microsoft.VisualStudio.Modeling.ModelElement * Guid -> 'Collection (requires 'Collection :> Microsoft.VisualStudio.Modeling.ReadOnlyLinkedElementCollection<'Element> and 'Element :> Microsoft.VisualStudio.Modeling.ModelElement)
Protected Shared Function GetRoleCollection(Of TCollection As ReadOnlyLinkedElementCollection(Of TElement), TElement As ReadOnlyLinkedElementCollection(Of TElement)) (modelElement As ModelElement, domainRoleId As Guid) As TCollection

Type Parameters

TCollection

The collection type to instanciate

TElement

The type for each of the elements in the collection

Parameters

modelElement
ModelElement

The source role player

domainRoleId
Guid

The role id

Returns

TCollection

A linked element collection using the source role player as modelElement

Applies to