Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Ensures that this theme has been applied to all themable styles and that corresponding themed styles are updated.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub GenerateThemedStyles ( _
shareGenerated As Boolean, _
web As SPWeb, _
themedStylesFolder As String _
)
'Usage
Dim instance As ThmxTheme
Dim shareGenerated As Boolean
Dim web As SPWeb
Dim themedStylesFolder As String
instance.GenerateThemedStyles(shareGenerated, _
web, themedStylesFolder)
public void GenerateThemedStyles(
bool shareGenerated,
SPWeb web,
string themedStylesFolder
)
Parameters
shareGenerated
Type: System.BooleanA Boolean value that indicates the location of the stored files. true to indicate that the generated files are stored at the root Web of the site collection; false to indicate that the generated files are stored per site.
web
Type: Microsoft.SharePoint.SPWebThe SharePoint Web site to which the updated theme is to be applied.
themedStylesFolder
Type: System.StringA string that specifies the destination folder for the theme files.
Exceptions
| Exception | Condition |
|---|---|
| [T:System:InvalidOperationException] | This theme cannot be applied. |
Remarks
Throws an [T:System:InvalidOperationException] if this theme cannot be applied.