Compartilhar 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