次の方法で共有


ThmxTheme.GenerateThemedStyles method (Boolean, SPWeb)

Ensures that the theme has been applied to all themable styles and that the 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 _
)
'Usage
Dim instance As ThmxTheme
Dim shareGenerated As Boolean
Dim web As SPWeb

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

Parameters

  • shareGenerated
    Type: System.Boolean

    A Boolean value that indicates where the themable styles are stored. 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.

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