Share via


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

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.

See also

Reference

ThmxTheme class

ThmxTheme members

Microsoft.SharePoint.Utilities namespace