ThmxTheme.GetThemeUrlForWeb method
Gets the server-relative URL for the ThmxTheme object whose theme is applied to the given SharePoint Web site.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetThemeUrlForWeb ( _
web As SPWeb _
) As String
'Usage
Dim web As SPWeb
Dim returnValue As String
returnValue = ThmxTheme.GetThemeUrlForWeb(web)
public static string GetThemeUrlForWeb(
SPWeb web
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe SharePoint Web site to which the theme is applied.
Return value
Type: System.String
The server-relative URL of the ThmxTheme object; otherwise, a null reference (Nothing in Visual Basic).
Remarks
This method returns null if no theme is applied.