Compartilhar 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.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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