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
web
Type: Microsoft.SharePoint.SPWebThe web site where the theme will be reapplied.
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.