SPListCollection Members
Include Protected Members
Include Inherited Members
Represents a collection of SPList objects.
The SPListCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | Gets the number of lists in the collection. (Overrides SPBaseCollection.Count.) | |
IncludeMobileDefaultViewUrl | Gets or sets a Boolean value that specifies whether to return the URL of the default mobile view for lists in the collection. | |
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. | |
Item[Guid] | Gets the list object from the collection that has the specified GUID. | |
Item[Int32] | Gets the list object at the specified index in the collection. | |
Item[String] | Gets the list object that has the specified name from the collection. | |
ListsForCurrentUser | Gets or sets a Boolean value that specifies whether only lists to which the current user has permissions are returned from the collection. | |
UpgradedPersistedProperties | (Inherited from SPAutoSerializingObject.) | |
Web | Gets the parent Web site of the collection. |
Top
Methods
Name | Description | |
---|---|---|
Add(String, String, SPListTemplate) | Creates a list with the specified title, description, and list template object. | |
Add(String, String, SPListTemplateType) | Creates a list with the specified title, description, and list definition type. | |
Add(String, String, SPListTemplate, SPDocTemplate) | Creates a document library with the specified title, description, list template object, and document template object. | |
Add(String, String, String, SPListDataSource) | Creates a list with the specified title, description, URL, and external data source. | |
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. | |
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. | |
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. | |
CreateListFromRpc | Creates a list from a name value collection that represents the arguments of a form submission. | |
Delete | Deletes the list with the specified GUID from the collection. | |
EnsureListsData | Checks data for a specified list and, if necessary, updates the list to ensure that the most current data is used. | |
EnsureSiteAssetsLibrary | A list that is designated as a default asset location for images or other files which the users upload to their wiki pages. | |
EnsureSitePagesLibrary | A list that is designated as a default location for wiki pages. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.) | |
GetHashCode | (Inherited from Object.) | |
GetList(Guid, Boolean) | Returns the list with the specified GUID from the collection. | |
GetList(Guid, Boolean, Boolean) | Returns the list with the specified GUID from the collection, including metadata for views and forms, and security data. | |
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. | |
GetObjectData | (Inherited from SPAutoSerializingObject.) | |
GetType | (Inherited from Object.) | |
GetTypedEnumerator<T> | Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.) | |
MemberwiseClone | (Inherited from Object.) | |
OnDeserialization | (Inherited from SPAutoSerializingObject.) | |
ToString | (Inherited from Object.) | |
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. | |
UpdateParent | (Inherited from SPAutoSerializingObject.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICollection.CopyTo | Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.) | |
ICollection.IsSynchronized | Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.) | |
ICollection.SyncRoot | Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.) |
Top