Share via


ThmxTheme.RemoveThemeFromWeb Method

Sets the theme on the web to none.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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

  • deleteFiles
    Type: System.Boolean

    Specifies 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).

See Also

Reference

ThmxTheme Class

ThmxTheme Members

Microsoft.SharePoint.Utilities Namespace