共用方式為


ThmxTheme.GenerateThemedStyles method (Boolean, SPWeb)

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

Syntax

'宣告
Public Sub GenerateThemedStyles ( _
    shareGenerated As Boolean, _
    web As SPWeb _
)
'用途
Dim instance As ThmxTheme
Dim shareGenerated As Boolean
Dim web As SPWeb

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

參數

  • shareGenerated
    Type: System.Boolean

    Boolean值,指出可成為佈景主題樣式的儲存位置。true表示產生的檔案都儲存於根網站的網站集合。指示產生的檔案會儲存每個站台的false 。

Exceptions

Exception Condition
[T:System:InvalidOperationException]

無法套用這個佈景主題。

備註

如果無法套用這個佈景主題,則會擲回**[T:System:InvalidOperationException]** 。

請參閱

參照

ThmxTheme class

ThmxTheme members

GenerateThemedStyles overload

Microsoft.SharePoint.Utilities namespace