共用方式為


ThmxTheme.SetThemeUrlForWeb method (SPWeb, String, Boolean)

套用至指定的網站指定的 URL 所指向的佈景主題。

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

Syntax

'宣告
Public Shared Sub SetThemeUrlForWeb ( _
    web As SPWeb, _
    themeUrl As String, _
    shareGenerated As Boolean _
)
'用途
Dim web As SPWeb
Dim themeUrl As String
Dim shareGenerated As BooleanThmxTheme.SetThemeUrlForWeb(web, themeUrl, _
    shareGenerated)
public static void SetThemeUrlForWeb(
    SPWeb web,
    string themeUrl,
    bool shareGenerated
)

參數

  • themeUrl
    Type: System.String

    佈景主題檔案伺服器相對 URL。

  • shareGenerated
    Type: System.Boolean

    true如果產生的階層式樣式表 (CSS) 檔案共用中的網站集合 ;否則, false。

備註

如果指定的網頁有先前套用的佈景主題,而且不共用佈景主題,這項作業會刪除這個佈景主題。

請參閱

參照

ThmxTheme class

ThmxTheme members

SetThemeUrlForWeb overload

Microsoft.SharePoint.Utilities namespace