共用方式為


ThmxTheme.SetThemeUrlForWeb method (SPWeb, String)

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

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

Syntax

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

參數

  • themeUrl
    Type: System.String

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

備註

佈景主題的階層式樣式表 (CSS) 檔案儲存在根 web 並共用所有的 web 網站集合中。

請參閱

參照

ThmxTheme class

ThmxTheme members

SetThemeUrlForWeb overload

Microsoft.SharePoint.Utilities namespace