Partilhar via


SP.Site Properties

Applies to: SharePoint Foundation 2010

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

Properties

Name

Description

allowDesigner

Gets or sets a value that specifies whether a designer can be used on this site collection.

allowMasterPageEditing

Gets or sets a value that specifies whether master page editing is allowed on this site collection.

allowRevertFromTemplate

Gets or sets a value that specifies whether this site collection can be reverted to its base template.

features

Gets a value that specifies the collection of the site collection features for the site collection that contains the site.

id

Gets the GUID that identifies the site collection.

maxItemsPerThrottledOperation

Gets a value that specifies the maximum number of list items allowed per operation before throttling will occur.

recycleBin

Gets a value that specifies the collection of recycle bin items for the site collection.

rootWeb

Gets a value that returns the top-level site of the site collection.

serverRelativeUrl

Gets the server-relative URL of the root Web site in the site collection.

showUrlStructure

Gets or sets a value that specifies whether the URL structure of this site collection is viewable.

uiVersionConfigurationEnabled

Gets or sets a value that specifies whether the Visual Upgrade UI of this site collection is displayed.

url

Gets the full URL to the root Web site of the site collection, including host name, port number, and path.

usage

Gets a value that specifies usage information about the site, including bandwidth, storage, and the number of visits to the site collection.

userCustomActions

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

Applies To

SP.Site Class

See Also

Reference

SP.Site Methods

SP Namespace