Share via


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

  • 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