Condividi tramite


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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