CollectionBase<T> Class

Creates a generic class for all public generic collections.

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

[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class CollectionBase<T> : IEnumerable<T>, 
	ICollection, IEnumerable
where T : class

Type Parameters


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.

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