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
)
參數
web
Type: Microsoft.SharePoint.SPWeb網路上將會套用佈景主題。
themeUrl
Type: System.String佈景主題檔案伺服器相對 URL。
shareGenerated
Type: System.Booleantrue如果產生的階層式樣式表 (CSS) 檔案共用中的網站集合 ;否則, false。
備註
如果指定的網頁有先前套用的佈景主題,而且不共用佈景主題,這項作業會刪除這個佈景主題。