Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies the theme pointed to by the specified URL to the specified web.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub SetThemeUrlForWeb ( _
web As SPWeb, _
themeUrl As String, _
shareGenerated As Boolean _
)
'Usage
Dim web As SPWeb
Dim themeUrl As String
Dim shareGenerated As BooleanThmxTheme.SetThemeUrlForWeb(web, themeUrl, _
shareGenerated)
public static void SetThemeUrlForWeb(
SPWeb web,
string themeUrl,
bool shareGenerated
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe web where the theme will be applied.
themeUrl
Type: System.StringThe server-relative URL of the theme file.
shareGenerated
Type: System.Booleantrue if the generated Cascading Style Sheet (CSS) files are shared in the site collection; otherwise, false.
Remarks
If the specified web had a theme previously applied to it and the theme was not shared, this operation will delete the theme.