SP.Web Properties

Applies to: SharePoint Foundation 2010

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

Properties

Name

Description

allowDesignerForCurrentUser

Gets a value that specifies whether the current user is allowed to use a designer application to customize this site.

allowMasterPageEditingForCurrentUser

Gets a value that specifies whether the current user is allowed to edit the master page.

allowRevertFromTemplateForCurrentUser

Gets a value that specifies whether the current user is allowed to revert the site to a default site template.

allowRssFeeds

Gets a value that specifies whether the site allows RSS feeds.

allProperties

Gets a collection of metadata for the Web site.

associatedMemberGroup

Gets or sets the group of users who have been given contribute permissions to the website.

associatedOwnerGroup

Gets or sets the associated owner group of the website.

associatedVisitorGroup

Gets or sets the associated visitor group of the website.

availableContentTypes

Gets the collection of all content types that apply to the current scope, including those of the current Web site, as well as any parent Web sites.

availableFields

Gets a value that specifies the collection of all fields available for the current scope, including those of the current site, as well as any parent sites.

contentTypes

Gets the collection of content types for the Web site.

created

Gets a value that specifies when the site was created.

currentUser

Gets the current user of the site.

description

Gets or sets the description for the site.

effectiveBasePermissions

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

features

Gets a value that specifies the collection of features that are currently activated in the site.

fields

Gets the collection of field objects that represents all the fields in the Web site.

folders

Gets the collection of all first-level folders in the Web site.

id

Gets a value that specifies the site identifier for the site.

language

Gets a value that specifies the LCID for the language that is used on the site.

lastItemModifiedDate

Gets a value that specifies when an item was last modified in the site.

lists

Gets the collection of all lists that are contained in the Web site available to the current user based on the current user’s permissions.

listTemplates

Gets a value that specifies the collection of list definitions and list templates available for creating lists on the site.

navigation

Gets a value that specifies the navigation structure on the site, including the Quick Launch area and the top navigation bar.

quickLaunchEnabled

Gets or sets a value that specifies whether the Quick Launch area is enabled on the site.

recycleBinEnabled

Gets or sets a value that specifies whether the Recycle Bin is enabled.

roleDefinitions

Gets the collection of role definitions for the Web site.

rootFolder

Gets the root folder for the Web site.

serverRelativeUrl

Gets or sets the server-relative URL for the Web site.

showUrlStructureForCurrentUser

Gets a value that specifies whether the current user is able to view the file system structure of this site.

siteGroups

Gets the collection of groups for the site collection.

siteUserInfoList

Gets the UserInfo list of the site collection that contains the Web site.

syndicationEnabled

Gets or sets a value that specifies whether the RSS feeds are enabled on the site.

title

Gets or sets the title for the Web site.

treeViewEnabled

Gets or sets value that specifies whether the tree view is enabled on the site.

uiVersion

Gets or sets the user interface (UI) version of the Web site.

uiVersionConfigurationEnabled

Gets or sets a value that specifies whether the settings UI for visual upgrade is shown or hidden.

userCustomActions

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

webs

Gets a Web site collection object that represents all Web sites immediately beneath the Web site, excluding children of those Web sites.

workflowAssociations

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

workflowTemplates

Gets a value that specifies the collection of workflow templates associated with the site.

Applies To

SP.Web Class

See Also

Reference

SP.Web Methods

SP Namespace