次の方法で共有


ThmxTheme.SetThemeUrlForWeb method (SPWeb, String)

Applies the theme pointed to by the specified URL to the specified web.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Sub SetThemeUrlForWeb ( _
    web As SPWeb, _
    themeUrl As String _
)
'Usage
Dim web As SPWeb
Dim themeUrl As StringThmxTheme.SetThemeUrlForWeb(web, themeUrl)
public static void SetThemeUrlForWeb(
    SPWeb web,
    string themeUrl
)

Parameters

  • themeUrl
    Type: System.String

    The server-relative URL of the theme file.

Remarks

The themed Cascading Style Sheet (CSS) files are stored at the root web and shared for all of the webs in the site collection.

See also

Reference

ThmxTheme class

ThmxTheme members

SetThemeUrlForWeb overload

Microsoft.SharePoint.Utilities namespace