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 the theme has been applied to all themable styles and that the 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 _
)
'Usage
Dim instance As ThmxTheme
Dim shareGenerated As Boolean
Dim web As SPWeb
instance.GenerateThemedStyles(shareGenerated, _
web)
public void GenerateThemedStyles(
bool shareGenerated,
SPWeb web
)
Parameters
shareGenerated
Type: System.BooleanA Boolean value that indicates where the themable styles are stored. 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.
Exceptions
| Exception | Condition |
|---|---|
| [T:System:InvalidOperationException] | This theme cannot be applied. |
Remarks
Throws an [T:System:InvalidOperationException] if this theme cannot be applied.