Condividi tramite


ThmxTheme.EnforceThemedStylesForWeb Method

Reapplies the currently applied theme on the web site.

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 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