Aracılığıyla paylaş


ModelElement.GetRoleCollection<TCollection, TElement> Yöntem (ModelElement, Guid)

Alır veya bağlı öğe koleksiyonu oluşturur

Ad alanı:  Microsoft.VisualStudio.Modeling
Derleme:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.0.dll içinde)

Sözdizimi

'Bildirim
Protected Shared Function GetRoleCollection(Of TCollection As ReadOnlyLinkedElementCollection(Of TElement), TElement As ModelElement) ( _
    modelElement As ModelElement, _
    domainRoleId As Guid _
) As TCollection
protected static TCollection GetRoleCollection<TCollection, TElement>(
    ModelElement modelElement,
    Guid domainRoleId
)
where TCollection : ReadOnlyLinkedElementCollection<TElement>
where TElement : ModelElement

Tür Parametreleri

  • TCollection
    İnstanciate için koleksiyon türü
  • TElement
    Koleksiyondaki öðeleri için türü

Parametreler

Dönüş Değeri

Tür: TCollection

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ModelElement Sınıf

GetRoleCollection Fazla Yük

Microsoft.VisualStudio.Modeling Ad Alanı