Share via


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

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

Remarks

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

See also

Reference

SPTheme class

SPTheme members

Microsoft.SharePoint.Utilities namespace