CollectionBase<T> Class
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.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class CollectionBase(Of T As Class) _
Implements IEnumerable(Of T), ICollection
'Usage
Dim instance As CollectionBase(Of T)
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class CollectionBase<T> : IEnumerable<T>,
ICollection
where T : class
Type Parameters
- T
Remarks
This class implements the .NET Framework's IEnumerable generic interface that is required for data binding and iterating collections. This 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.