Share via


SPTheme.EnsureThemedStylesForLocales method

Generate themed stylesheets for the specified set of locales using the currently applied theme.

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

Syntax

'Declaration
Public Shared Function EnsureThemedStylesForLocales ( _
    web As SPWeb, _
    languages As HashSet(Of Integer) _
) As Boolean
'Usage
Dim web As SPWeb
Dim languages As HashSet(Of Integer)
Dim returnValue As Boolean

returnValue = SPTheme.EnsureThemedStylesForLocales(web, _
    languages)
public static bool EnsureThemedStylesForLocales(
    SPWeb web,
    HashSet<int> languages
)

Parameters

Return value

Type: System.Boolean
true if successful, false if the specified SPWeb is not currently themed or its theme is corrupted.

Remarks

It is ok to call this method with an lcid that already has stylesheets generated for it. In that case, stylesheets would be regenerated.

See also

Reference

SPTheme class

SPTheme members

Microsoft.SharePoint.Utilities namespace