SPListCollection members

Include protected members
Include inherited members

Represents a collection of SPList objects.

The SPListCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of lists in the collection. (Overrides SPBaseCollection.Count.)
Public property IncludeMobileDefaultViewUrl Gets or sets a Boolean value that specifies whether to return the URL of the default mobile view for lists in the collection.
Public property IncludeRootFolder Gets or sets a Boolean value that specifies whether the root folder of a list in the collection is returned by the RootFolder property.
Public property Item[Guid] Gets the list object from the collection that has the specified GUID.
Public property Item[Int32] Gets the list object at the specified index in the collection.
Public property Item[String] Gets the list object that has the specified name from the collection.
Public property ListsForCurrentUser Gets or sets a Boolean value that specifies whether only lists to which the current user has permissions are returned from the collection.
Public property Web Gets the parent Web site of the collection.

Top

Methods

  Name Description
Public method Add(String, String, SPListTemplate) Creates a list with the specified title, description, and list template object.
Public method Add(String, String, SPListTemplateType) Creates a list with the specified title, description, and list definition type.
Public method Add(String, String, SPListTemplate, SPDocTemplate) Creates a document library with the specified title, description, list template object, and document template object.
Public method Add(String, String, String, SPListDataSource) Creates a list with the specified title, description, URL, and external data source.
Public method Add(String, String, String, String, Int32, String) Creates a document library with the specified title, description, URL, Feature ID, list template type, and document template type.
Public method Add(String, String, String, String, Int32, String, SPListTemplate.QuickLaunchOptions) Creates a list based on the specified title, description, URL, Feature ID, template type, document template type, and options for displaying a link to the list in Quick Launch.
Public method Add(String, String, String, String, Int32, String, String, SPFeatureDefinition, SPListTemplate.QuickLaunchOptions) Creates a list based on the specified title, description, URL, Feature ID, template type, document template type, the list feature definition, customizations to the feature definition, and options for displaying a link to the list in Quick Launch.
Public method CreateListFromRpc Creates a list from a name value collection that represents the arguments of a form submission.
Public method Delete Deletes the list with the specified GUID from the collection.
Protected method EnsureListsData Checks data for a specified list and, if necessary, updates the list to ensure that the most current data is used.
Public method EnsureSiteAssetsLibrary A list that is designated as a default asset location for images or other files which the users upload to their wiki pages.
Public method EnsureSitePagesLibrary A list that is designated as a default location for wiki pages.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetList(Guid, Boolean) Returns the list with the specified GUID from the collection.
Public method GetList(Guid, Boolean, Boolean) Returns the list with the specified GUID from the collection, including metadata for views and forms, and security data.
Public method GetList(Guid, Boolean, Boolean, Boolean) Returns the list with the specified GUID from the collection, including metadata for views and forms, security data, and related fields.
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method TryGetList Returns the list with the specified title from the collection, but returns a null reference (Nothing in Visual Basic) instead of an exception if the list does not exist.

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)

Top

See also

Reference

SPListCollection class

Microsoft.SharePoint namespace