Share via


ThmxTheme.EnforceThemedStylesForWeb method

Reapplies the currently applied theme on the web site.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Sub EnforceThemedStylesForWeb ( _
    web As SPWeb _
)
'Usage
Dim web As SPWebThmxTheme.EnforceThemedStylesForWeb(web)
public static void EnforceThemedStylesForWeb(
    SPWeb web
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

web is null .

Remarks

This method does nothing if the folder URL of the Cascading Style Sheet (CSS) files does not exist.

See also

Reference

ThmxTheme class

ThmxTheme members

Microsoft.SharePoint.Utilities namespace