ThmxTheme.RemoveThemeFromWeb method
Sets the theme on the web to none.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub RemoveThemeFromWeb ( _
web As SPWeb, _
deleteFiles As Boolean _
)
'Usage
Dim web As SPWeb
Dim deleteFiles As BooleanThmxTheme.RemoveThemeFromWeb(web, deleteFiles)
public static void RemoveThemeFromWeb(
SPWeb web,
bool deleteFiles
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe web from which the theme should be removed.
deleteFiles
Type: System.BooleanSpecifies if the generated filed should be deleted.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | web is null . |
Remarks
This method sets the theme on the web to none (unthemed).