Share via


GenericCollection<T> class

The GenericCollection class for all public generic collections.

Inheritance hierarchy

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

Namespace:  Microsoft.SharePoint.Taxonomy.Generic
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class GenericCollection(Of T As Class) _
    Implements IEnumerable(Of T), ICollection, IEnumerable
'Usage
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

Type parameters

  • T
    The type of items contained in the collection

Remarks

This class implements the .NET Framework's IEnumerable generic interface required for data binding and iterating collections. The class also implements the .NET Framework's ICollection interface and provides a Count property.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

GenericCollection<T> members

Microsoft.SharePoint.Taxonomy.Generic namespace