ThmxTheme.GetThemeUrlForWeb method
取得ThmxTheme物件的佈景主題套用至指定的 SharePoint 網站的伺服器相對 URL。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetThemeUrlForWeb ( _
web As SPWeb _
) As String
'用途
Dim web As SPWeb
Dim returnValue As String
returnValue = ThmxTheme.GetThemeUrlForWeb(web)
public static string GetThemeUrlForWeb(
SPWeb web
)
參數
web
Type: Microsoft.SharePoint.SPWebSharePoint 網站要套用佈景主題。
傳回值
Type: System.String
ThmxTheme物件 ; 伺服器相對 URL否則, a null reference (Nothing in Visual Basic)。
備註
如果不套用任何佈景主題,這個方法會傳回 null 。