Share via


CollectionBase class

Base class for public collections.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Publishing.CollectionBase
    Microsoft.SharePoint.Publishing.PublishingWebCollection

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 _
    Implements IEnumerable
'Usage
Dim instance As CollectionBase
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public abstract class CollectionBase : IEnumerable

Remarks

This class implements the .NET Framework's IEnumerable interface that is required for data binding and iterating collections. It also 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 members

Microsoft.SharePoint.Publishing namespace

GetEnumerator

Count