Export (0) Print
Expand All

SPList Methods

The SPList type exposes the following members.

  Name Description
Public method AddItem() Creates a list item in the root folder of the list.
Public method AddItem(String, SPFileSystemObjectType) Creates a list item of a specified type in the specified folder in the list.
Public method AddItem(String, SPFileSystemObjectType, String) Creates a list item of a specified type with a specified file name in the specified folder in the list.
Public method AddWorkflowAssociation Obsolete. Adds a workflow association to the list.
Public method AppendDataTable Appends the results returned by a query to an existing data table.
Public method BreakRoleInheritance(Boolean) Creates unique role assignments for the object and optionally copies role assignments from the parent. (Inherited from SPSecurableObject.)
Public method BreakRoleInheritance(Boolean, Boolean) Creates unique role assignments for the list from the parent, optionally copies roles assignments from the parent, and optionally clears unique role assignments from descendants. (Overrides SPSecurableObject.BreakRoleInheritance(Boolean, Boolean).)
Public method CheckPermissions Checks whether the current user has the specified set of permissions for the list and throws an exception if the user does not have them. (Overrides SPSecurableObject.CheckPermissions(SPBasePermissions).)
Public method Delete Deletes the list.
Public method DoesUserHavePermissions(SPBasePermissions) Indicates whether the current user has a specified set of permissions. (Inherited from SPSecurableObject.)
Public method DoesUserHavePermissions(SPBasePermissions, Boolean) Indicates whether the current user has a specified set of permissions on the list and optionally checks permissions on the current folder.
Public method DoesUserHavePermissions(SPUser, SPBasePermissions) Indicates whether the specified user has the specified set of permissions on the list.
Protected method EnsurePropsFresh Checks the properties of the list, and, if necessary, updates them to ensure that the most current settings are used.
Public method EnsureRssSettings Ensures that the RSS settings of the list are current.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetChanges() Returns the default number of changes from the current change log for the list.
Public method GetChanges(SPChangeQuery) Gets the changes to the list from the change log as filtered by the specified query.
Public method GetChanges(SPChangeToken) Returns a collection of changes starting from a particular point in the change log.
Public method GetChanges(SPChangeToken, SPChangeToken) Returns a collection of changes logged over a specified period of time.
Public method GetContentTypeIdByUrl Returns the content type identifier (ID) for the content type with the specified URL.
Public method GetDataTable Retrieves a data table that contains item data that satisfies a query.
Public method GetDefaultViewForContentType Returns the default view of list data that is used by the specified content type.
Public method GetDirectChildContentType Returns the content type identifier (ID) for the content type that is the direct child of the specified content type.
Public method GetDistinctFieldValues Obsolete. Returns a two-dimensional object that represents an array of field values in which data duplication within a specified field in the list is eliminated and each value returned is unique.
Public method GetHashCode (Inherited from Object.)
Public method GetItemById Gets the list item with the specified identifier (ID).
Public method GetItemByIdAllFields Returns the list item with the specified identifier (ID).
Public method GetItemByIdSelectedFields Gets the list item with the specified identifier (ID) and includes only the values for the specified fields.
Public method GetItemByUniqueId Gets the list item by GUID.
Public method GetItems([]) Returns a collection of items from the list but includes only the specified field values.
Public method GetItems(SPQuery) Gets a collection of items from the list based on the specified query.
Public method GetItems(SPView) Returns a collection of items from the list based on the specified view.
Public method GetItems(SPQuery, String) Gets a collection of items from the list based on the specified query and view.
Public method GetItemsWithUniquePermissions() Returns a collection of SPListItemInfo objects for items that have unique permissions.
Public method GetItemsWithUniquePermissions(Int32, Boolean) Returns a collection of SPListItemInfo objects for items that have unique permissions by specifying the maximum number of items to return and whether to return only folder information.
Public method GetPropertiesXmlForUncustomizedViews Returns properties of the uncustomized views of the list, including the GUID, the type, the display name, the URL, and the ID of the base view.
Public method GetRelatedFields() Returns a collection of objects with information about a lookup field in another list that points to a field in this list.
Public method GetRelatedFields(SPRelationshipDeleteBehavior) Gets a collection of objects with information about a lookup field in another list that points to a field in this list, depending upon the specified deletion constraint.
Public method GetType (Inherited from Object.)
Public method GetUncustomizedViewByBaseViewId Gets the view object that is associated with the specified base view identifier (ID).
Public method GetUserEffectivePermissionInfo Gets detailed information about the effective permissions that a specified user has on the list and the role assignments for this user at this scope. (Overrides SPSecurableObject.GetUserEffectivePermissionInfo(String).)
Public method GetUserEffectivePermissions Gets the effective permissions that a specified user has on the list. (Overrides SPSecurableObject.GetUserEffectivePermissions(String).)
Public method GetView Returns a view of the list based on the specified GUID.
Public method IsContentTypeAllowed(SPContentType) Verifies that the list supports the specified content type.
Public method IsContentTypeAllowed(SPContentTypeId) Verifies that the list supports the specified content type.
Protected method MemberwiseClone (Inherited from Object.)
Public method Recycle Recycles the list and returns the list's globally unique identifier (GUID).
Public method RemoveWorkflowAssociation Obsolete. Removes the specified workflow association from the list.
Public method RenderAsHtml Gets the results of the specified query in HTML format.
Public method ResetRoleInheritance Resets the role assignments to those of the parent object. (Overrides SPSecurableObject.ResetRoleInheritance().)
Public method SaveAsTemplate Saves the list as a template in the list template gallery and includes the option of saving with or without the data that is contained in the current list.
Public method Static member ServerTemplateCanReceiveEmail Gets whether the specified list template and website support receiving email.
Protected method SetAttributesForPropertiesXML This member is reserved for internal use and is not intended to be used directly from your code.
Public method ToString Returns the title of the list. (Overrides Object.ToString().)
Public method Update() Updates the database with changes that are made to the list.
Public method Update(Boolean) Updates the database with changes that are made to the list, optionally including changes that result from data migration.
Public method UpdateWorkflowAssociation Obsolete. Updates the specified workflow association.
Public method WriteRssFeed(Stream) Writes the RSS feeds from the list to the specified document stream.
Public method WriteRssFeed(Stream, Int32) Writes the RSS feeds that are associated with the specified meeting to the specified document stream.
Public method WriteRssFeed(Stream, Int32, SPView) Writes the RSS feeds that are associated with the specified meeting and view to the specified document stream.
Top
Show:
© 2014 Microsoft