Share via


ThmxTheme.GenerateThemedStyles method (Boolean, SPWeb, String)

Ensures that this theme has been applied to all themable styles and that corresponding themed styles are updated.

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

Syntax

'Declaration
Public Sub GenerateThemedStyles ( _
    shareGenerated As Boolean, _
    web As SPWeb, _
    themedStylesFolder As String _
)
'Usage
Dim instance As ThmxTheme
Dim shareGenerated As Boolean
Dim web As SPWeb
Dim themedStylesFolder As String

instance.GenerateThemedStyles(shareGenerated, _
    web, themedStylesFolder)
public void GenerateThemedStyles(
    bool shareGenerated,
    SPWeb web,
    string themedStylesFolder
)

Parameters

  • shareGenerated
    Type: System.Boolean

    A Boolean value that indicates the location of the stored files. true to indicate that the generated files are stored at the root Web of the site collection; false to indicate that the generated files are stored per site.

  • themedStylesFolder
    Type: System.String

    A string that specifies the destination folder for the theme files.

Exceptions

Exception Condition
[T:System:InvalidOperationException]

This theme cannot be applied.

Remarks

Throws an [T:System:InvalidOperationException] if this theme cannot be applied.

See also

Reference

ThmxTheme class

ThmxTheme members

GenerateThemedStyles overload

Microsoft.SharePoint.Utilities namespace