Partilhar via


SPBaseCollection Class

Provides the base functionality for collections in the Microsoft.SharePoint and Microsoft.SharePoint.Administration namespaces.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SerializableAttribute> _
<SubsetCallableExcludeInterfaceAttribute(SubsetCallableExcludeMemberType.ExplicitInterfaceProperty, ExcludeInterface := GetType(ICollection))> _
<SubsetCallableTypeAttribute> _
Public MustInherit Class SPBaseCollection _
    Inherits SPAutoSerializingObject _
    Implements ICollection, IEnumerable
'Usage
Dim instance As SPBaseCollection
[SerializableAttribute]
[SubsetCallableExcludeInterfaceAttribute(SubsetCallableExcludeMemberType.ExplicitInterfaceProperty, ExcludeInterface = typeof(ICollection))]
[SubsetCallableTypeAttribute]
public abstract class SPBaseCollection : SPAutoSerializingObject, 
    ICollection, IEnumerable

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

SPBaseCollection Members

Microsoft.SharePoint Namespace

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.Administration.SPContentDatabaseCollection
      Microsoft.SharePoint.Administration.SPDeletedSiteCollection
      Microsoft.SharePoint.Administration.SPPolicy.SPPolicyRoleBindingCollection
      Microsoft.SharePoint.Administration.SPPrefixCollection
      Microsoft.SharePoint.Administration.SPQuotaTemplateCollection
      Microsoft.SharePoint.Administration.SPRunningJobCollection
      Microsoft.SharePoint.Administration.SPSiteCollection
      Microsoft.SharePoint.Administration.SPVirtualServerCollection
      Microsoft.SharePoint.Administration.SPWebServerCollection
      Microsoft.SharePoint.Deployment.SPExportObjectCollection
      Microsoft.SharePoint.Deployment.SPImportObjectCollection
      Microsoft.SharePoint.Navigation.SPNavigationNodeCollection
      Microsoft.SharePoint.SPAlertCollection
      Microsoft.SharePoint.SPAuditEntryCollection
      Microsoft.SharePoint.SPCalendarViewStyleCollection
      Microsoft.SharePoint.SPChangeCollection
      Microsoft.SharePoint.SPChangeTokenCollection
      Microsoft.SharePoint.SPContentTypeCollection
      Microsoft.SharePoint.SPCopyDestinationCollection
      Microsoft.SharePoint.SPDocDiscussionCollection
      Microsoft.SharePoint.SPDocTemplateCollection
      Microsoft.SharePoint.SPEventReceiverDefinitionCollection
      Microsoft.SharePoint.SPFeatureDependencyCollection
      Microsoft.SharePoint.SPFieldCollection
      Microsoft.SharePoint.SPFieldIndexCollection
      Microsoft.SharePoint.SPFieldLinkCollection
      Microsoft.SharePoint.SPFieldTypeDefinitionCollection
      Microsoft.SharePoint.SPFileCollection
      Microsoft.SharePoint.SPFileVersionCollection
      Microsoft.SharePoint.SPFolderCollection
      Microsoft.SharePoint.SPFormCollection
      Microsoft.SharePoint.SPLanguageCollection
      Microsoft.SharePoint.SPLinkCollection
      Microsoft.SharePoint.SPListCollection
      Microsoft.SharePoint.SPListItemCollection
      Microsoft.SharePoint.SPListItemVersionCollection
      Microsoft.SharePoint.SPListTemplateCollection
      Microsoft.SharePoint.SPLocaleCollection
      Microsoft.SharePoint.SPMemberCollection
      Microsoft.SharePoint.SPModuleCollection
      Microsoft.SharePoint.SPPermissionCollection
      Microsoft.SharePoint.SPRecycleBinItemCollection
      Microsoft.SharePoint.SPRelatedFieldCollection
      Microsoft.SharePoint.SPRoleAssignmentCollection
      Microsoft.SharePoint.SPRoleCollection
      Microsoft.SharePoint.SPRoleDefinitionBindingCollection
      Microsoft.SharePoint.SPRoleDefinitionCollection
      Microsoft.SharePoint.SPSearchResultCollection
      Microsoft.SharePoint.SPSiteSubscriptionCollection
      Microsoft.SharePoint.SPSiteSubscriptionFeaturePackCollection
      Microsoft.SharePoint.SPSiteSubscriptionSiteCollection
      Microsoft.SharePoint.SPTimeZoneCollection
      Microsoft.SharePoint.SPUserResourceCollection
      Microsoft.SharePoint.SPUserSolutionCollection
      Microsoft.SharePoint.SPViewCollection
      Microsoft.SharePoint.SPViewFieldCollection
      Microsoft.SharePoint.SPViewStyleCollection
      Microsoft.SharePoint.SPWebCollection
      Microsoft.SharePoint.SPWebTemplateCollection
      Microsoft.SharePoint.SPWorkItemCollection
      Microsoft.SharePoint.SPXmlDocumentCollection
      Microsoft.SharePoint.Workflow.SPWorkflowAssociationCollection
      Microsoft.SharePoint.Workflow.SPWorkflowCollection
      Microsoft.SharePoint.Workflow.SPWorkflowExternalDataExchangeServiceCollection
      Microsoft.SharePoint.Workflow.SPWorkflowModificationCollection
      Microsoft.SharePoint.Workflow.SPWorkflowTaskCollection
      Microsoft.SharePoint.Workflow.SPWorkflowTemplateCollection