SPWeb methods
The SPWeb type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddApplicationPrincipal | Adds a user to the website as an application principal; that is, a user object that is delegated to act on behalf of an external application. | |
AddProperty | Adds a property to the list of metadata for the website. | |
AddSupportedUICulture | Adds culture-specific information to the list supported by the website. | |
AllowAllWebTemplates | Resets the available web templates on the website to the complete set of web templates. | |
ApplyTheme(String) | Obsolete. Applies a theme to a website. | |
ApplyTheme(String, String, String, Boolean) | Applies a theme with the specified components to this site. | |
ApplyWebTemplate(String) | Applies the specified site definition or site template to the website that has no template applied to it. | |
ApplyWebTemplate(SPWebTemplate) | Applies the specified site definition object or site template object to the website that has no template applied to it. | |
BreakRoleInheritance(Boolean) | Creates unique role assignments for the object and optionally copies role assignments from the parent. (Inherited from SPSecurableObject.) | |
BreakRoleInheritance(Boolean, Boolean) | Creates unique role assignments for the website, optionally copies role assignments from the parent website, and optionally clears unique role assignments from descendants. (Overrides SPSecurableObject.BreakRoleInheritance(Boolean, Boolean).) | |
BypassUseRemoteApis | Accesses the website by bypassing the SOAP, WebDAV and Microsoft Office SharePoint Designer 2007 interfaces. | |
CheckPermissions | Determines whether the current user has a specified set of permissions. (Inherited from SPSecurableObject.) | |
Close | Closes the website at the end of a request and releases resources. | |
CreateDefaultAssociatedGroups | Creates an owner group. | |
CustomizeCss | Customizes the specified style sheet for the website. | |
Delete | Deletes the website. | |
DeleteProperty | Deletes a property from the list of metadata for the website. | |
Dispose | Releases all resources used by the current instance of the website. | |
DoesPushNotificationSubscriberExist | Checks whether the push notification subscriber exist for the current user with the given device application instance ID. | |
DoesUserHavePermissions(SPBasePermissions) | Indicates whether the current user has a specified set of permissions. (Inherited from SPSecurableObject.) | |
DoesUserHavePermissions(String, SPBasePermissions) | Indicates whether the specified user has a specified set of permissions. | |
EnsureUser | Checks whether the specified logon name belongs to a valid user of the website, and if the logon name does not already exist, adds it to the website. | |
Equals | (Inherited from Object.) | |
ExportUserResources | Exports user resources for a given language. | |
Finalize | (Inherited from Object.) | |
GetAppInstanceById | Retrieves an AppInstance installed on this Site. | |
GetAppInstancesByProductId | Retrieves all AppInstances installed on this site that are instances of the specified App. | |
GetAvailableCrossLanguageWebTemplates | Returns the collection of available cross-language web templates. | |
GetAvailableWebTemplates(UInt32) | Gets the Web templates that are available for creating subsites beneath the website, based on the specified locale identifier (ID). | |
GetAvailableWebTemplates(UInt32, Boolean) | Gets the site templates that are available for creating subsites beneath the website, based on the specified locale identifier (ID) and whether to include language-neutral site templates. | |
GetCatalog | Gets the list template gallery, site template gallery, or Web Parts page gallery for the website. | |
GetChanges() | Gets all of changes listed in the current change log for the website. | |
GetChanges(SPChangeQuery) | Gets changes from the change log filtered by the specified query. | |
GetChanges(SPChangeToken) | Gets the changes starting from a specified point in the change log. | |
GetChanges(SPChangeToken, SPChangeToken) | Gets the changes logged over a specified period of time. | |
GetFieldLocalizations | Returns the collection of localizations for the website for the specified culture. | |
GetFile(Guid) | Gets the file object with the specified identifier (ID). | |
GetFile(String) | Retrieves the file object located at the specified URL. | |
GetFileAsString | Gets the contents of the file object located at the specified URL as a string. | |
GetFileOrFolderObject | Retrieves a file or folder on the website 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(Guid) | Retrieves the folder object with the specified GUID. | |
GetFolder(String) | Gets the folder that is located at the specified URL. | |
GetHashCode | (Inherited from Object.) | |
GetLimitedWebPartManager | Returns the limited Web Part Manager for the specified Web Part page and view. | |
GetList | Gets the list that is associated with the specified server-relative URL. | |
GetListFromUrl | Gets the list that is associated with the first Web Part on the specified Web Parts page. Beginning in Windows SharePoint Services 3.0, use the GetListFromWebPartPageUrl method instead of this method. | |
GetListFromWebPartPageUrl | Gets the list that is associated with the first Web Part on the specified Web Parts page. | |
GetListItem | Gets the list item that is associated with the specified server-relative URL. | |
GetListItemFields | Gets the list item that is associated with the specified server-relative URL, returning data for only the specified fields. | |
GetListsOfType | Gets the lists of the specified type. | |
GetObject | Retrieves a file, folder, or list item that is associated with the specified URL. | |
GetProperty | Gets the value of a property with the specified key from the list of metadata for the website. | |
GetPushNotificationSubscriber | Gets the push notification subscriber over the site for the specified device application instance ID. | |
GetPushNotificationSubscribersByArgs | Queries for the push notification subscribers over the site for the specified value of custom arguments. Null or empty custom arguments will return subscribers without any filtering. | |
GetPushNotificationSubscribersByUser | Queries for the push notification subscribers over the site for the specified user. | |
GetRecycleBinItems | Gets the recycle bin items that are based on the specified query. | |
GetServerRelativeUrlFromUrl | Given a full, server relative or web relative url, returns a server relative url that always starts with a slash. | |
GetSiteAppPrincipals | Get the app principals in the site collection. | |
GetSiteData | Gets the list items across multiple lists, which can be located in multiple websites in the same website collection. | |
GetSubwebsForCurrentUser() | Gets the subsites beneath the current site of which the current user is a member. | |
GetSubwebsForCurrentUser(Int32) | Gets the subsites beneath the current website of which the current user is a member based on the specified site definition. | |
GetSubwebsForCurrentUser(Int32, Int16) | Gets the subsites beneath the current website in which the current user is a member, based on the specified site definition and configuration. | |
GetType | (Inherited from Object.) | |
GetUsageData(SPUsageReportType, SPUsagePeriodType) | Gets a table that contains information about the usage of a website, based on the specified report type and time interval. | |
GetUsageData(SPUsageReportType, SPUsagePeriodType, Int32, DateTime) | Gets a table that contains information about the usage of a website based on the specified report type, time interval, number of columns to display, and last day to display. | |
GetUserEffectivePermissionInfo | Gets the effective permissions that the specified user has and the role assignments related to this user within this scope. (Overrides SPSecurableObject.GetUserEffectivePermissionInfo(String).) | |
GetUserEffectivePermissions | Gets the effective permissions that the specified user has within the current application scope. (Overrides SPSecurableObject.GetUserEffectivePermissions(String).) | |
GetUserToken | Retrieves the user token for the specified user. | |
GetViewFromUrl | Gets a view of a list within the site based on the specified URL. | |
GetWebPartCollection | Obsolete. 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.) | |
GetWebsAndListsWithUniquePermissions | Retrieves a collection of Webs and Lists that either have unique permissions themselves or have items with unique permissions. | |
ImportUserResources | Imports user resources for the specified language. | |
InsertAlertEvent(Guid, String, Int32, SPReusableAcl) | Inserts an event in the events table for the specified custom prematching GUID, event data, event type, and reusable access control list (ACL). | |
InsertAlertEvent(Guid, String, Int32, []) | Inserts an event in the events table for the specified custom prematching GUID, event data, event type, and access control list (ACL). | |
IsCurrentUserMemberOfGroup | Gets whether the current user is a member of the specified group. | |
LoadAndInstallApp | Uploads and installs an app package. | |
LoadAndInstallAppInSpecifiedLocale | Uploads and installs an App package, in a specified locale. | |
LoadApp | Uploads an App package and creates an instance from it. | |
MemberwiseClone | (Inherited from Object.) | |
OriginalBaseUrl | Returns the base URL for the current request. | |
ProcessBatchData | Processes the specified commands for sending multiple requests to the server per transaction. | |
RecalculateWebFineGrainedPermissions | Recalculates whether the website contains a list or list item that has unique permissions, and updates the value of the AllowAutomaticASPXPageIndexing property. | |
Recycle | Sends the website to the recycle bin. | |
RegisterPushNotificationSubscriber | Registers the subscriber for push notifications over the site. If the registration already exists, the service token is updated with the new value. | |
RemoveExternalSecurityProvider | Obsolete. Removes the external security provider for the website. | |
RemoveSupportedUICulture | Removes support for the specified culture (locale) from the website. | |
ResetRoleInheritance | Resets the local role assignments so the website, and all it's descendant objects, re-inherit role assignments from the parent website. (Overrides SPSecurableObject.ResetRoleInheritance().) | |
RevertAllDocumentContentStreams | Restores all files within the website 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 website as a site template solution. | |
SearchDocuments(String) | This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. Use the Execute method of the Microsoft.SharePoint.Search.Query.KeywordQuery class or the FullTextSqlQuery class instead. | |
SearchDocuments(String, UInt32, SPSearchResultCollectionPosition) | This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. Use the Execute method of the Microsoft.SharePoint.Search.Query.KeywordQuery class or the FullTextSqlQuery class instead. | |
SearchListItems(String) | This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. Use the Execute method of the Microsoft.SharePoint.Search.Query.KeywordQuery class or the FullTextSqlQuery class instead. | |
SearchListItems(String, UInt32, SPSearchResultCollectionPosition) | This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. Use the Execute method of the Microsoft.SharePoint.Search.Query.KeywordQuery class or the FullTextSqlQuery class instead. | |
SetAvailableCrossLanguageWebTemplates | Specifies a set of language-neutral Web templates that are available for creating subsites below the website, regardless of locale. | |
SetAvailableWebTemplates | Specifies the Web templates that are available for creating subsites below the website for the specified locale. | |
SetProperty | Sets the value of a property with the specified key in the list of metadata for the website. | |
ToString | Returns the title of the website. (Overrides Object.ToString().) | |
UnregisterPushNotificationSubscriber | Unregisters the subscriber for push notifications from the site. | |
Update | Updates the database with changes that are made to the website. | |
ValidateFormDigest | Validates the form digest control that is used in the current request. |
Top