SPWeb 成员 (Microsoft.SharePoint)

Represents a Windows SharePoint Services Web site.

以下表格列出了由 SPWeb 类型公开的成员。

公共属性

  名称 说明
公共属性 Alerts Gets the collection of alerts for the site or subsite.
公共属性 AllowAnonymousAccess Gets a Boolean value that indicates whether anonymous access is allowed for the Web site.
公共属性 AllowAutomaticASPXPageIndexing Gets or sets a Boolean value that specifies whether the .aspx page within the Web site should be indexed by the search engine.
公共属性 AllowRssFeeds Gets a Boolean value that specifies whether the Web site allows RSS feeds.
公共属性 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.
公共属性 AllProperties Gets a hash table that contains metadata for the Web site.
公共属性 AllRolesForCurrentUser Gets the collection of role definitions for the roles to which the current user is assigned.
公共属性 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.
公共属性 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.
公共属性 AlternateCssUrl Gets or sets the URL for an alternate cascading style sheet (CSS) to use in the Web site.
公共属性 AlternateHeader Gets or sets the URL for an alternate .aspx page that will be used to render the top navigation area in Windows SharePoint Services pages.
公共属性 AnonymousPermMask64 Gets the base permissions for anonymous users of the Web site.
公共属性 AnonymousState Gets or sets the level of access for anonymous users on the Web site.
公共属性 ASPXPageIndexed Gets a Boolean value that specifies whether the .aspx pages of the Web site are automatically indexed.
公共属性 ASPXPageIndexMode Gets or sets the .aspx page indexing that is used by the Web site.
公共属性 AssociatedGroups Gets a list of the groups that are associated with the Web site.
公共属性 AssociatedMemberGroup Gets the users who have been given contribute permissions to the Web site.
公共属性 AssociatedOwnerGroup Gets or sets the associated owner groups of the Web site.
公共属性 AssociatedVisitorGroup Gets or sets the associated visitor group of the Web site.
公共属性 Audit Gets the audit log that is associated with the Web site.
公共属性 AuthenticationMode  
公共属性 Author Gets a user object that represents the user who created the Web site.
公共属性 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 the collection of the available fields of the Web site.
公共属性 CacheAllSchema Gets or sets a Boolean value that specifies whether caching of all schemas on the Web site is enabled.
公共属性 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 that was used to create the site was derived.
公共属性 ContentTypes Gets the collection of content types for the Web site.
公共属性 Created Gets a date and time value that indicates when the site was created.
公共属性 CurrencyLocaleID Gets the locale identifier (ID) that is used for currency in the Web site.
公共属性 CurrentChangeToken Gets the change token that is used when the next change is logged to the Web site.
公共属性 CurrentUser Gets the current user of the site.
公共属性 CustomMasterUrl Gets or sets the URL for a custom master page file to apply to the Web site.
公共属性 DataRetrievalServicesSettings Gets an object that represents the data retrieval service settings for the deployment of Windows SharePoint Services.
公共属性 Description Gets or sets the description for the site.
公共属性 DocTemplates Gets the collection of document templates that are used on the site.
公共属性 EffectiveBasePermissions Gets the effective base permissions that are assigned to the current user.
公共属性 EffectivePresenceEnabled Gets a Boolean value that indicates whether effective presence information is enabled on the site.
公共属性 EmailInsertsEnabled Gets a Boolean value that indicates whether document libraries on the virtual server can accept e-mail attachments from public folders. 已过时。
公共属性 EventHandlersEnabled Gets a Boolean value that indicates whether Windows SharePoint Services 2.0 event handlers can be used on the site.
公共属性 EventReceivers Gets the collection of event receiver definitions that are currently available on the Web site.
公共属性 ExecuteUrl Gets the URL that is called after the site definition for a business solutions site is instantiated.
公共属性 Exists Gets a Boolean value that indicates whether the Web site exists.
公共属性 ExternalSecurityProviderSetting Gets the settings that are used by an external security provider for the site.
公共属性 Features Gets the collection of Features that are currently activated in the Web site.
公共属性 Fields Gets the collection of field objects that represents all the fields in the Web site.
公共属性 FieldTypeDefinitionCollection Gets the collection of SPFieldTypeDefinition objects that represents type definition information for the fields of the Web site.
公共属性 Files Gets the collection of all files in the root directory of the Web site.
公共属性 FirstUniqueAncestor Gets the first ancestor Web site with unique permissions and where the access control list (ACL) for the current site is defined.
公共属性 FirstUniqueAncestorWeb Gets the first parent Web site that has unique permissions.
公共属性 FirstUniqueRoleDefinitionWeb Gets the Web site where the role definitions for the current site were defined.
公共属性 Folders Gets the collection of all first-level folders in the Web site.
公共属性 Groups Gets the collection of cross-site groups for the site.
公共属性 HasExternalSecurityProvider Gets a Boolean value that indicates whether the site uses an external security provider.
公共属性 HasUniquePerm Gets or sets a Boolean value that specifies whether the site has unique permissions. 已过时。
公共属性 HasUniqueRoleAssignments Gets a Boolean value that indicates whether the role assignments are uniquely defined for this Web site or inherited from a parent Web site.
公共属性 HasUniqueRoleDefinitions Gets a Boolean value that indicates whether the role definitions are uniquely defined for this Web site or inherited from a parent Web site.
公共属性 ID Gets the GUID for the site.
公共属性 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.
公共属性 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 Web site.
公共属性 IsADEmailEnabled Gets a Boolean value that indicates whether e-mail for Active Directory Domain Services (AD DS)is enabled on the site.
公共属性 IsRootWeb Gets a Boolean value that indicates whether the site is the top-level Web site of the site collection.
公共属性 Language Gets the locale identifier for the language that is used on the site.
公共属性 LastItemModifiedDate Gets the date and time that an item was last modified in the site.
公共属性 Lists Gets the collection of all lists that are contained in the Web site.
公共属性 ListTemplates Gets the collection of all list definitions and list templates that are available for creating lists on the Web site.
公共属性 Locale Gets or sets the locale for the Web site.
公共属性 MasterUrl Gets or sets the URL of the master page that is used for the Web site.
公共属性 Modules Gets the collection of modules that are used on the Web site.
公共属性 Name Gets or sets the name of the Web site.
公共属性 Navigation Gets a navigation object that represents navigation on the Web site, including the Quick Launch area and the top navigation bar.
公共属性 NoCrawl Gets or sets a Boolean value that specifies whether searching is enabled for the Web site.
公共属性 ParentWeb Gets the parent Web site of the specified Web site.
公共属性 ParentWebId Gets the identifier (ID) of the parent Web site for the site.
公共属性 ParserEnabled Gets or sets a Boolean value that specifies whether parsing is enabled for the Web site.
公共属性 Permissions Gets the collection of permissions for the Web site. 已过时。
公共属性 PortalMember Gets a Boolean value that indicates whether the Web site is associated with a portal site.
公共属性 PortalName Gets the name of a portal site that is associated with the site.
公共属性 PortalSubscriptionUrl Gets the URL that is used for alerts within a portal.
公共属性 PortalUrl Gets the URL to a portal site that is associated with the site.
公共属性 PresenceEnabled Gets or sets a Boolean value that specifies whether inline presence information is enabled on the Web site.
公共属性 Properties Gets property settings for the site, such as the version of Windows SharePoint Services and the language locale. Instead use the new AllProperties property to return the settings for a Web site, because Properties returns only a subset of these settings.
公共属性 Provisioned Gets a Boolean value that indicates whether the Web site has been provisioned.
公共属性 PublicFolderRootUrl Gets the URL of the public folder that is used for e-mail attachments in document libraries.
公共属性 QuickLaunchEnabled Gets or sets a Boolean value that specifies whether the Quick Launch area is enabled on the Web site.
公共属性 RecycleBin Gets the recycle bin of the Web site.
公共属性 RegionalSettings Gets the regional settings that are currently implemented on the Web site.
公共属性 RequestAccessEmail Gets or sets the e-mail address to which requests for access are sent.
公共属性 RequestAccessEnabled Gets a Boolean value that indicates whether request for access to the Web site is enabled.
公共属性 ReusableAcl Gets the reusable access control list (ACL) for the Web site.
公共属性 RoleAssignments Gets the collection of role assignments for the Web site.
公共属性 RoleDefinitions Gets the collection of role definitions for the Web site.
公共属性 Roles Use the RoleDefinitions property to get the collection of role definitions for a Web site. In Windows SharePoint Services 2.0, the Roles property was used to get the collection of site groups on the Web site. 已过时。
公共属性 RootFolder Gets the root folder for the Web site.
公共属性 ServerRelativeUrl Gets or sets the server-relative URL for the Web site.
公共属性 Site Gets the parent site collection for the Web site.
公共属性 SiteAdministrators Gets the collection of the Web site administrators.
公共属性 SiteGroups Gets the collection of cross-site groups for the site collection.
公共属性 SiteLogoDescription Gets or sets the description of the Web site logo.
公共属性 SiteLogoUrl Gets or sets the absolute URL of the Web site logo.
公共属性 SiteUserInfoList Gets the UserInfo list of the site collection that contains the Web site.
公共属性 SiteUsers Gets the collection of all users that belong to the site collection.
公共属性 SyndicationEnabled Gets or sets a Boolean value that specifies whether syndication is enabled in the Web site.
公共属性 Theme Gets the name of the theme that is applied to the Web site.
公共属性 ThemeCssUrl Gets the URL for the cascading style sheets file that is used in the theme for the Web site.
公共属性 Title Gets or sets the title for the Web site.
公共属性 TreeViewEnabled Gets or sets a Boolean value that specifies whether the Windows SharePoint Services TreeView is enabled in the left navigational area of Web site pages.
公共属性 Url Gets the absolute URL for the Web site.
公共属性 UserIsSiteAdmin Gets a Boolean value that indicates whether the user has administrative rights on the Web site, including ManageSubwebs, ManagePermissions, and ManageWeb permissions.
公共属性 UserIsWebAdmin Gets a Boolean value that indicates whether the user is a member of the Administrator site group for the site.
公共属性 Users Gets the collection of user objects that are explicitly assigned permissions in the Web site.
公共属性 ViewStyles Gets the collection of view styles for the Web site.
公共属性 Webs Gets a Web site collection object that represents all Web sites immediately beneath the Web site, excluding children of those Web sites.
公共属性 WebTemplate Gets the name of the site definition that was used to create the site, or gets the name of the site definition from which the site template that was used to create the site is derived.
公共属性 WebTemplateId Gets the identifier (ID) of the site definition that was used to create the site or the ID of the site definition from which the site template that was used to create the site is derived.
公共属性 WorkflowTemplates Gets the collection of workflow templates of the Web site.

页首

公共方法

(另请参阅 受保护的方法 )

  名称 说明
公共方法 AllowAllWebTemplates Resets the available Web templates on the Web site to the complete set of Web templates.
公共方法 ApplyTheme Applies a theme to a Web site.
公共方法 ApplyWebTemplate 已重载。 Applies the specified site definition object or site template object to the Windows SharePoint Services Web site.
公共方法 BreakRoleInheritance Breaks inheritance of role assignments from the parent Web site.
公共方法 BypassUseRemoteApis Accesses the Web site by bypassing the SOAP, WebDAV and Microsoft Office SharePoint Designer 2007 interfaces.
公共方法 CheckPermissions Checks the permissions for the Web site and raises an Access Denied error if the permissions fail.
公共方法 Close Closes the Web site at the end of a request and releases resources.
公共方法 CreateDefaultAssociatedGroups Creates the default security groups that are associated with a site.
公共方法 CustomizeCss Customizes the specified style sheet for the Web site.
公共方法 Delete Deletes the Web site.
公共方法 Dispose Releases all unmanaged resources that are used by the Web site object.
公共方法 DoesUserHavePermissions 已重载。 Checks the permissions of a user for a specified set of rights.
公共方法 EnsureUser Checks whether the specified login name belongs to a valid user of the Web site, and if the login name does not already exist, adds it to the Web site.
公共方法 Equals  已重载。 (继承自 Object
公共方法 GetAvailableCrossLanguageWebTemplates Returns the collection of available cross-language Web templates.
公共方法 GetAvailableWebTemplates 已重载。 Returns the Web templates that are available for creating subsites beneath the subsite.
公共方法 GetCatalog Returns the list template gallery, site template gallery, or Web Part gallery for the Web site.
公共方法 GetChanges 已重载。 Queries the change log and returns a collection of changes that have occurred in the Web site.
公共方法 GetDocDiscussions Returns the collection of document discussion objects for the specified directory in the site.
公共方法 GetFieldLocalizations Returns the collection of localizations for the Web site for the specified culture.
公共方法 GetFile 已重载。 Returns the file object with the specified GUID or the file object that is located at the specified URL.
公共方法 GetFileAsString Returns the contents of the file object located at the specified URL as a string.
公共方法 GetFileOrFolderObject Returns a file or folder on the Web site with the specified URL.
公共方法 GetFilePersonalizationInformation Returns the file level of a specified document as output parameters and also returns a value that specifies whether the document has personalized Web Parts.
公共方法 GetFolder 已重载。 Returns the folder object with the specified GUID or the folder object that is located at the specified URL.
公共方法 GetHashCode  (继承自 Object
公共方法 GetLimitedWebPartManager Returns the limited Web Part Manager for the specified Web Part page and view.
公共方法 GetList Returns the list that is associated with the specified server-relative URL.
公共方法 GetListFromUrl Returns the list that is associated with the first Web Part on the specified Web Part page. Beginning in Windows SharePoint Services 3.0, use the GetListFromWebPartPageUrl method instead of the GetListUrl method.
公共方法 GetListFromWebPartPageUrl Returns the list that is associated with the first Web Part on the specified Web Part page.
公共方法 GetListItem Returns the list item that is associated with the specified server-relative URL.
公共方法 GetListsOfType Returns a collection of list objects of the specified type from the Web site.
公共方法 GetObject Returns a file, folder, or list item that is associated with the specified URL.
公共方法 GetRecycleBinItems Returns a collection of recycle bin items that are based on the specified query.
公共方法 GetSiteData Performs a query for list items across multiple lists, which can be located in multiple Web sites in the same Web site collection.
公共方法 GetSubwebsForCurrentUser 已重载。 Returns the collection of subsites beneath the current Web site of which the current user is a member.
公共方法 GetType  (继承自 Object
公共方法 GetUsageData 已重载。 Returns a table that contains information about the usage of a Web site.
公共方法 GetUserEffectivePermissionInfo Get effective permissions that the specified user has and the role assignments related to this user within this scope.
公共方法 GetUserEffectivePermissions Retrieves the effective permissions the specified user has within the current application scope.
公共方法 GetViewFromUrl Returns a view of a list within the site based on the specified URL.
公共方法 GetWebPartCollection Use the GetLimitedWebPartManager method of the SPFile class to return an SPLimitedWebPartManager object to manage Web Parts instead. (In Windows SharePoint Services 2.0 the GetWebPartCollection method returned the collection of Web Parts on the page at the specified URL.) 已过时。
公共方法 InsertAlertEvent 已重载。 Inserts an event in the events table.
公共方法 IsCurrentUserMemberOfGroup Returns a Boolean value that specifies whether the current user is a member of the specified group.
公共方法 静态 OriginalBaseUrl Returns the base URL for the current request.
公共方法 ProcessBatchData Processes the specified batch string of commands for sending multiple requests to the server per transaction.
公共方法 RecalculateWebFineGrainedPermissions Recalculates whether the Web site contains a list or list item that has unique permissions, and updates the value of the AllowAutomaticASPXPageIndexing property.
公共方法 静态 ReferenceEquals  (继承自 Object
公共方法 RemoveExternalSecurityProvider Removes the external security provider for the Web site.
公共方法 ResetRoleInheritance Resets the role inheritance for the Web site.
公共方法 RevertAllDocumentContentStreams Restores all files within the Web site to their original uncustomized state so that their logic becomes cached in memory (also known as "ghosted") rather than stored within the database.
公共方法 RevertCss Reverts style sheet customization of a file to the default style sheet.
公共方法 SaveAsTemplate Saves the Web site as a site template.
公共方法 SearchDocuments 已重载。 Obsolete. For 搜索, use the Execute method of the Microsoft.SharePoint.Search.Query.KeywordQuery class or the Microsoft.SharePoint.Search.Query.FullTextSqlQuery class instead. (In Windows SharePoint Services 2.0, the SearchDocuments method searched documents in the Web site for the specified string.)
公共方法 SearchListItems 已重载。 Searches list data in the Web site for the specified string.
公共方法 SetAvailableCrossLanguageWebTemplates Specifies a set of language-neutral Web templates that are available for creating subsites below the Web site, regardless of locale.
公共方法 SetAvailableWebTemplates Specifies the Web templates that are available for creating subsites below the Web site for the specified locale.
公共方法 ToString 已重写。 Returns the title of the Web site.
公共方法 Update Updates the database with changes that are made to the Web site.
公共方法 ValidateFormDigest Validates the form digest control that is used in the current request.

页首

受保护的方法

  名称 说明
受保护的方法 Finalize  (继承自 Object
受保护的方法 MemberwiseClone  (继承自 Object

页首

另请参阅

参考

SPWeb 类
Microsoft.SharePoint 命名空间