CollectionBase<T> class

Creates a generic class for all public generic collections.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Publishing.CollectionBase<T>
    Microsoft.SharePoint.Publishing.ListItemBasedReadOnlyCollection<T>
    Microsoft.SharePoint.Publishing.QueryBasedCollection<T>

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

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

Type parameters

  • T

Remarks

This class implements the Microsoft .NET FrameworkIEnumerable generic interface that is required for data binding and iterating collections. This class also implements the .NET FrameworkICollection 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

CollectionBase<T> members

Microsoft.SharePoint.Publishing namespace

SyncRoot

Count

Item

IsSynchronized

CopyTo