ModelElement.GetRoleCollection Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
GetRoleCollection<TCollection,TElement>(Guid) |
Ottiene o crea la raccolta di elementi collegati |
GetRoleCollection<TCollection,TElement>(ModelElement, Guid) |
Ottiene o crea la raccolta di elementi collegati |
GetRoleCollection<TCollection,TElement>(Guid)
Ottiene o crea la raccolta di elementi collegati
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
Parametri di tipo
- TCollection
Tipo di raccolta di cui creare un'istanza.
- TElement
Tipo di ciascun elemento contenuto nella raccolta.
Parametri
- domainRoleId
- Guid
ID ruolo.
Restituisce
- TCollection
Raccolta di elementi collegati con l'ID del ruolo di origine domainRoleId
Si applica a
GetRoleCollection<TCollection,TElement>(ModelElement, Guid)
Ottiene o crea la raccolta di elementi collegati
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
Parametri di tipo
- TCollection
Tipo di raccolta di cui creare un'istanza.
- TElement
Tipo di ciascun elemento contenuto nella raccolta.
Parametri
- modelElement
- ModelElement
Assegnatario del ruolo di origine
- domainRoleId
- Guid
ID ruolo.
Restituisce
- TCollection
Una raccolta di elementi collegati che usa l'assegnatario di ruolo di origine come modelElement