GenericCollection<T> - Classe

La classe GenericCollection pour toutes les collections génériques publics.

Hiérarchie d’héritage

System.Object
  Microsoft.SharePoint.Taxonomy.Generic.GenericCollection<T>
    Microsoft.SharePoint.Taxonomy.ChangedItemCollection
    Microsoft.SharePoint.Taxonomy.Generic.IndexedCollection<T>
    Microsoft.SharePoint.Taxonomy.Generic.PropertyCollection<T>

Espace de noms :  Microsoft.SharePoint.Taxonomy.Generic
Assembly :  Microsoft.SharePoint.Taxonomy (dans Microsoft.SharePoint.Taxonomy.dll)

Syntaxe

'Déclaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class GenericCollection(Of T As Class) _
    Implements IEnumerable(Of T), ICollection, IEnumerable
'Utilisation
Dim instance As GenericCollection(Of T)
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class GenericCollection<T> : IEnumerable<T>, 
    ICollection, IEnumerable
where T : class

Paramètres de type

  • T
    Le type des éléments contenus dans la collection

Remarques

Cette classe implémente l'interface générique du IEnumerable de la.NET Framework requis pour la liaison de données et itérer les collections. La classe implémente également ICollection interface du.NET Framework et fournit une propriété Count .

Cohérence de thread

Tous les membres statique (Partagé dans Visual Basic)s publics de ce type sont thread-safe. Cela n’est pas garanti pour les membres d’instance.

Voir aussi

Référence

GenericCollection<T> - Membres

Microsoft.SharePoint.Taxonomy.Generic - Espace de noms