Export (0) Print
Expand All

SPTheme.ApplyTo method

SharePoint 2013

Applies this theme to the given web.

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

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

Parameters

web
Type: Microsoft.SharePoint.SPWeb

The web on which the theme should be applied.

shareGenerated
Type: System.Boolean

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

If the web had a theme previously applied to it and that theme was not shared, this operation will delete it.

Show:
© 2014 Microsoft