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
web
Type: Microsoft.SharePoint.SPWebThe SPWeb to generated themed stylesheets for
languages
Type: System.Collections.Generic.HashSet<Int32>The list of lcids to generate themed stylesheets for
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.