Compartilhar via


SP.List Properties

Applies to: SharePoint Foundation 2010

The following table lists the properties of the SP.List class.

Properties

Name

Description

allowContentTypes

Gets a value that specifies whether the list supports content types.

baseTemplate

Gets the list definition type on which the list is based.

baseType

Gets the base type for the list.

browserFileHandling

Gets a value that specifies the override of the web application’s BrowserFileHandling property at the list level.

contentTypes

Gets the content types that are associated with the list.

contentTypesEnabled

Gets or sets a value that specifies whether content types are enabled for the list.

created

Gets a value that specifies when the list was created.

dataSource

Gets the data source associated with the list, or null if the list is not a virtual list.

defaultContentApprovalWorkflowId

Gets or sets a value that specifies the default workflow identifier for content approval on the list.

defaultDisplayFormUrl

Gets or sets a value that specifies the location of the default display form for the list.

defaultEditFormUrl

Gets or sets a value that specifies the URL of the edit form to use for list items in the list.

defaultNewFormUrl

Gets or sets a value that specifies the location of the default new form for the list.

defaultViewUrl

Gets the URL of the default view for the list.

description

Gets or sets a value that specifies the description of the list.

direction

Gets or sets a value that specifies the reading order of the list.

documentTemplateUrl

Gets or sets a value that specifies the server-relative URL of the document template for the list.

draftVersionVisibility

Gets or sets a value that specifies the minimum permission required to view minor versions and drafts within the list.

effectiveBasePermissions

Gets a value that specifies the effective permissions on the list that are assigned to the current user.

enableAttachments

Gets or sets a value that specifies whether list item attachments are enabled for the list.

enableFolderCreation

Gets or sets a value that specifies whether new list folders can be added to the list.

enableMinorVersions

Gets or sets a value that specifies whether minor versions are enabled for the list.

enableModeration

Gets or sets a value that specifies whether content approval is enabled for the list.

enableVersioning

Gets or sets a value that specifies whether historical versions of list items and documents can be created in the list.

fields

Gets a value that specifies the collection of all fields in the list.

forceCheckout

Gets or sets a value that indicates whether forced checkout is enabled for the document library.

forms

Gets a value that specifies the collection of all list forms in the list.

hasExternalDataSource

Gets a value that specifies whether the list is an external list.

hidden

Gets or sets a Boolean value that specifies whether the list is hidden.

id

Gets the GUID that identifies the list in the database.

imageUrl

Gets a value that specifies the URI for the icon of the list.

isApplicationList

Gets or sets a value that specifies a flag that a client application can use to determine whether to display the list.

isCatalog

Gets a value that specifies whether the list is a gallery.

isSiteAssetsLibrary

Gets a value that indicates whether the list is designated as a default asset location for images or other files which the users upload to their wiki pages.

itemCount

Gets a value that specifies the number of list items in the list.

lastItemDeletedDate

Gets a value that specifies the last time a list item was deleted from the list.

lastItemModifiedDate

Gets a value that specifies the last time a list item, field, or property of the list was modified.

multipleDataList

Gets or sets a value that indicates whether the list in a Meeting Workspace site contains data for multiple meeting instances within the site.

noCrawl

Gets or sets a value that specifies that the crawler must not crawl the list.

onQuickLaunch

Gets or sets a value that specifies whether the list appears on the Quick Launch of the site.

parentWeb

Gets a value that specifies the site that contains the list.

parentWebUrl

Gets a value that specifies the server-relative URL of the site that contains the list.

rootFolder

Gets the root folder that contains the files in the list and any related files.

schemaXml

Gets a value that specifies the list schema of the list.

serverTemplateCanCreateFolders

Gets a value that indicates whether folders can be created within the list.

templateFeatureId

Gets a value that specifies the feature identifier of the feature that contains the list schema for the list.

title

Gets or sets the displayed title for the list.

userCustomActions

Gets a value that specifies the collection of all user custom actions for the list.

validationFormula

Gets or sets a value that specifies the data validation criteria for a list item.

validationMessage

Gets or sets a value that specifies the error message returned when data validation fails for a list item.

views

Gets a value that specifies the collection of all public views on the list and personal views of the current user on the list.

workflowAssociations

Gets a value that specifies the collection of all workflow associations for the list.

Applies To

SP.List Class

See Also

Reference

SP.List Methods

SP Namespace