Export (0) Print
Expand All
Expand Minimize

SPWeb Properties

The SPWeb type exposes the following members.

  Name Description
Public property Alerts Gets the collection of alerts for the site or subsite.
Public property AllowAnonymousAccess Gets a Boolean value that indicates whether anonymous access is allowed for the website.
Public property AllowAutomaticASPXPageIndexing Gets or sets a Boolean value that specifies whether the .aspx page within the website should be indexed by the search engine.
Public property AllowDesignerForCurrentUser Gets a Boolean value that specifies whether the current user is allowed to use the designer for this website. The default value is false.
Public property AllowMasterPageEditingForCurrentUser A Boolean value that specifies whether the current user is allowed to edit master pages.
Public property AllowRevertFromTemplateForCurrentUser A Boolean value that specifies whether the current user is allowed to revert the site from the template.
Public property AllowRssFeeds Gets a Boolean value that specifies whether the website allows RSS feeds.
Public property AllowUnsafeUpdates Gets or sets a Boolean value that specifies whether to allow updates to the database as a result of a GET request or without requiring a security validation.
Public property AllProperties Gets a hash table that contains metadata for the website.
Public property AllRolesForCurrentUser Gets a full list of role definitions on the object to which the current user belongs on this scope. (Inherited from SPSecurableObject.)
Public property AllUsers Gets the collection of user objects that represents all users who are either members of the site or who have browsed to the site as authenticated members of a domain group in the site.
Public property AllWebTemplatesAllowed Gets a Boolean value that indicates whether the available Web templates that are returned by the GetAvailableWebTemplates method comprise the complete set of templates.
Public property AlternateCssUrl Gets or sets the URL for an alternate cascading style sheet (CSS) to use in the website.
Public property AlternateHeader Gets or sets the URL for an alternate .aspx page that will be used to render the top navigation area in SharePoint Foundation pages.
Public property AnonymousPermMask64 Gets or sets the base permissions for anonymous users of the website. (Read-only in sandboxed solutions.)
Public property AnonymousState Gets or sets the level of access for anonymous users on the website.
Public property ASPXPageIndexed Gets a Boolean value that specifies whether the .aspx pages of the website are automatically indexed.
Public property ASPXPageIndexMode Gets or sets the .aspx page indexing that is used by the website.
Public property AssociatedGroups Gets a list of the groups that are associated with the website.
Public property AssociatedMemberGroup Gets the users who have been given contribute permissions to the website.
Public property AssociatedOwnerGroup Gets or sets the associated owner groups of the website.
Public property AssociatedVisitorGroup Gets or sets the associated visitor group of the website.
Public property Audit Gets the audit log that is associated with the website.
Public property AuthenticationMode Obsolete. Reserved for internal use.
Public property Author Gets or sets a user object that represents the user who created the website. (Read-only in sandboxed solutions.)
Public property AvailableContentTypes Gets the collection of all content type templates that apply to the current scope, including those of the current website, as well as any parent websites.
Public property AvailableFields Gets the collection of the available fields of the website.
Public property CacheAllSchema Gets or sets a Boolean value that specifies whether caching of all schemas on the website is enabled.
Public property ClientTag The client cache control number (client tag) for this website.
Public property Configuration Gets either the identifier (ID) of the site definition configuration that was used to create the site, or the ID of the site definition configuration from which the site template used to create the site was derived.
Public property ContentTypes Gets the collection of content types for the website.
Public property Created Gets or sets a date and time value that indicates when the site was created. (Read-only in sandboxed solutions.)
Public property CurrencyLocaleID Gets the locale identifier (LCID) that is used for currency in the website.
Public property CurrentChangeToken Gets the change token that is used when the next change is logged to the website.
Public property CurrentUser Gets the current user of the site.
Public property CustomJavaScriptFileUrl The custom ECMAScript (JavaScript, JScript) file URL used by the CustomJsUrl web control.
Public property CustomMasterUrl Gets or sets the URL for a custom master page file to apply to the website.
Public property CustomUploadPage Gets or sets the path to a custom application page for uploading files.
Public property DataRetrievalServicesSettings Obsolete. Gets an object that represents the data retrieval service settings for the deployment of SharePoint Foundation.
Public property Description Gets or sets the description for the site.
Public property DescriptionResource Gets an SPUserResource object that represents the translations for the description of the site.
Public property DocTemplates Gets the collection of document templates that are used on the site.
Public property EffectiveBasePermissions Gets the effective base permissions that are assigned to the current user. (Overrides SPSecurableObject.EffectiveBasePermissions.)
Public property EffectivePresenceEnabled Gets a Boolean value that indicates whether effective presence information is enabled on the site.
Public property EmailInsertsEnabled Obsolete. Gets a Boolean value that indicates whether document libraries on the virtual server can accept e-mail attachments from public folders.
Public property EventHandlersEnabled Obsolete. Gets a Boolean value that indicates whether Windows SharePoint Services 2.0 event handlers can be used on the site.
Public property EventReceivers Gets the collection of event receiver definitions that are currently available on the website.
Public property ExcludeFromOfflineClient Gets or sets a value that indicates whether the data from the website should be downloaded to the client during offline synchronization.
Public property ExecuteUrl Gets the URL that is called after the site definition for a business solutions site is instantiated.
Public property Exists Gets a Boolean value that indicates whether the website exists.
Public property ExternalSecurityProviderSetting Obsolete. Gets the settings that are used by an external security provider for the site.
Public property Features Gets the collection of Features that are currently activated in the website.
Public property Fields Gets the collection of field objects that represents all the fields in the website.
Public property FieldTypeDefinitionCollection Gets the collection of SPFieldTypeDefinition objects that represents type definition information for the fields of the website.
Public property FileDialogPostProcessorId Gets or sets the Class Identifier (CLSID) for the user interface element that is used for Web views in the file dialog boxes and forms of document libraries.
Public property Files Gets the collection of all files in the root directory of the website.
Public property FirstUniqueAncestor Obsolete. Use the FirstUniqueAncestorSecurableObject property instead. (Inherited from SPSecurableObject.)
Public property FirstUniqueAncestorSecurableObject An ISecurableObject interface that represents the first unique ancestor website. This is the object where the ACL is defined. For a web with unique permission the First Unique Ancestor is itself. For a web that inherits permissions the First Unique Ancestor is one of the ancestral webs. (Overrides SPSecurableObject.FirstUniqueAncestorSecurableObject.)
Public property FirstUniqueAncestorWeb Gets the first parent website that has unique permissions.
Public property FirstUniqueRoleDefinitionWeb Gets the website where the role definitions for the current site were defined.
Public property Folders Gets the collection of all first-level folders in the website.
Public property Groups Gets a collection that contains all the groups for the website.
Public property HasExternalSecurityProvider Obsolete. Gets a Boolean value that indicates whether the site uses an external security provider.
Public property HasUniquePerm Obsolete. Gets or sets a Boolean value that specifies whether the site has unique permissions.
Public property HasUniqueRoleAssignments Indicates whether the object has unique role assignments or inherits its role assignments from a parent object. (Inherited from SPSecurableObject.)
Public property HasUniqueRoleDefinitions Gets a Boolean value that indicates whether the role definitions are uniquely defined for this website or inherited from a parent website.
Public property ID Gets the GUID for the site.
Public property IncludeSupportingFolders Gets or sets a Boolean value that specifies whether supporting folders for files or folders in the site are included in enumerations of files or folders.
Public property IsADAccountCreationMode Gets a Boolean value that indicates whether user accounts are automatically created in Active Directory Domain Services (AD DS) when users are invited to the website.
Public property IsADEmailEnabled Gets a Boolean value that indicates whether e-mail for Active Directory Domain Services (AD DS)is enabled on the site.
Public property IsMultilingual Gets or sets a value that indicates whether a multilingual user interface is enabled for the website.
Public property IsRootWeb Gets a Boolean value that indicates whether the site is the top-level website of the site collection.
Public property Language Gets the locale identifier (LCID) for the default language of the website.
Public property LastItemModifiedDate Gets or sets the date and time that an item was last modified in the site. (Read-only in sandboxed solutions.)
Public property Lists Gets the collection of all lists that are contained in the website.
Public property ListTemplates Gets the collection of all list definitions and list templates that are available for creating lists on the website.
Public property Locale Gets or sets the locale that is used when time, currency and numeric fields are rendered on the website.
Public property MasterPageReferenceEnabled Retrieves a Boolean value that indicates whether the website is enabled for master page referencing.
Public property MasterUrl Gets or sets the URL of the master page that is used for the website.
Public property Modules Gets the collection of modules that are used on the website.
Public property Name Gets or sets the name of the website.
Public property Navigation Gets a navigation object that represents navigation on the website, including the Quick Launch area and the top navigation bar.
Public property NoCrawl Gets or sets a Boolean value that specifies whether searching is enabled for the website.
Public property OverwriteTranslationsOnChange Gets and sets a Boolean value that indicates whether changes made to user-specified text in the default language should automatically overwrite existing translations made in all alternate languages.
Public property ParentWeb Gets the parent website of the specified website.
Public property ParentWebId Gets the identifier (ID) of the parent website for the site.
Public property ParserEnabled Gets or sets a value that specifies whether parsing is enabled for document libraries of the website.
Public property Permissions Obsolete. Gets the collection of permissions for the website.
Public property PortalMember Gets a Boolean value that indicates whether the website is associated with a portal site.
Public property PortalName Gets the name of a portal site that is associated with the site.
Public property PortalSubscriptionUrl Gets the URL that is used for alerts within a portal.
Public property PortalUrl Gets the URL to a portal site that is associated with the site.
Public property PresenceEnabled Gets or sets a Boolean value that specifies whether inline presence information is enabled on the website.
Public property Properties Gets a SPPropertyBag object with the metadata for the website.
Public property Provisioned Gets a Boolean value that indicates whether the website has been provisioned.
Public property PublicFolderRootUrl Obsolete. Gets the URL of the public folder that is used for e-mail attachments in document libraries.
Public property QuickLaunchEnabled Gets or sets a Boolean value that specifies whether the Quick Launch area is enabled on the website.
Public property RecycleBin Gets the recycle bin of the website.
Public property RecycleBinEnabled Gets or sets a value that determines whether the recycle bin is enabled for the website.
Public property RegionalSettings Gets the regional settings that are currently implemented on the website.
Public property RequestAccessEmail Gets or sets the e-mail address to which requests for access are sent.
Public property RequestAccessEnabled Gets a Boolean value that indicates whether request for access to the website is enabled.
Public property ReusableAcl Gets the reusable access control list (ACL) for the website. (Overrides SPSecurableObject.ReusableAcl.)
Public property RoleAssignments Gets the role assignments for this securable object. (Inherited from SPSecurableObject.)
Public property RoleDefinitions Gets the collection of role definitions for the website.
Public property Roles Obsolete. Use the RoleDefinitions property to get the collection of role definitions for a website. In Windows SharePoint Services 2.0, the Roles property was used to get the collection of site groups on the website.
Public property RootFolder Gets the root folder for the website.
Public property ServerRelativeUrl Gets or sets the server-relative URL for the website.
Public property ShowUrlStructureForCurrentUser Retrieves a Boolean value that specifies whether the current user is allowed to see the file structure of the current site. The default value is false.
Public property Site Gets the parent site collection for the website.
Public property SiteAdministrators Gets the collection of the website administrators.
Public property SiteGroups Gets a collection that contains all the groups in the site collection.
Public property SiteLogoDescription Gets or sets the description of the website logo.
Public property SiteLogoUrl Gets or sets the absolute URL of the website logo.
Public property SiteUserInfoList Gets the UserInfo list of the site collection that contains the website.
Public property SiteUsers Gets the collection of all users that belong to the site collection.
Public property SupportedUICultures Gets an enumerable collection of objects with information about cultures supported by the website.
Public property SyndicationEnabled Gets or sets a value that specifies whether Really Simple Syndication (RSS) is enabled in the website.
Public property Theme Gets the name of the theme that is applied to the website.
Public property ThemeCssUrl Gets the URL for the cascading style sheets file that is used in the theme for the website.
Public property ThemedCssFolderUrl Gets or sets the URL to the folder that contains the cascading style sheets (CSS) file that is used in the theme for the website.
Public property Title Gets or sets the title for the website.
Public property TitleResource Gets an SPUserResource object that represents the translations for the title of the website.
Public property TreeViewEnabled Gets or sets a Boolean value that specifies whether the SharePoint Foundation TreeView is enabled in the left navigational area of website pages.
Public property UICulture Gets a CultureInfo object that represents to the default language for the website.
Public property UIVersion Gets or sets the current version number of the user interface.
Public property UIVersionConfigurationEnabled Gets or sets a value that indicates whether to enable the user interface (UI) for changing the version of the UI.
Public property Url Gets the absolute URL for the website.
Public property UserCustomActions Retrieves a refreshed SPUserCustomActionCollection.
Public property UserIsSiteAdmin Gets a Boolean value that indicates whether the user has administrative rights on the website, including ManageSubwebs, ManagePermissions, and ManageWeb permissions.
Public property UserIsWebAdmin Gets a Boolean value that indicates whether the user is a member of the Administrator site group for the site.
Public property UserResources Gets the collection of user-defined localized resources scoped to the current website.
Public property Users Gets the collection of user objects that are explicitly assigned permissions in the website.
Public property ViewStyles Gets the collection of view styles for the website.
Public property Webs Gets a website collection object that represents all websites immediately beneath the website, excluding children of those websites.
Public property WebTemplate Gets the name of the site definition or site template that was used to create the site.
Public property WebTemplateId Gets the identifier (ID) of the site definition that was used to create the site.
Public property WorkflowAssociations Gets the collection of workflow association objects that represents all the workflows that are associated with the website.
Public property Workflows Gets the collection of workflow instances that are running or have run on the website.
Public property WorkflowTemplates Gets the collection of workflow templates of the website.
Top
Show:
© 2014 Microsoft