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)

public void ApplyTo(
	SPWeb web,
	bool 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