SPTheme.ApplyTo method
Applies this theme to the given web.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub ApplyTo ( _
web As SPWeb, _
shareGenerated As Boolean _
)
'Usage
Dim instance As SPTheme
Dim web As SPWeb
Dim shareGenerated As Boolean
instance.ApplyTo(web, shareGenerated)
public void ApplyTo(
SPWeb web,
bool shareGenerated
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe web on which the theme should be applied.
shareGenerated
Type: System.Booleantrue if the generated CSS should be shared by all sites in the site collection (stored at the root web); false otherwise
Implements
ISPTheme.ApplyTo(SPWeb, Boolean)
Remarks
If the web had a theme previously applied to it and that theme was not shared, this operation will delete it.