다음을 통해 공유


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.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, 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.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, 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