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.
Applies the current theme to the given web.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub ApplyTo ( _
web As SPWeb, _
shareGenerated As Boolean _
)
'Usage
Dim instance As ThmxTheme
Dim web As SPWeb
Dim shareGenerated As Boolean
instance.ApplyTo(web, shareGenerated)
public void ApplyTo(
SPWeb web,
bool shareGenerated
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe web on which the theme should be applied.
shareGenerated
Type: System.Booleantrue if the generated Cascading Style Sheet should be stored at the root web; otherwise, false.
Implements
ISPTheme.ApplyTo(SPWeb, Boolean)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | web is null . |
| InvalidOperationException | The theme file is invalid. |
Remarks
If web is a null reference (Nothing in Visual Basic), this method throws a ArgumentNullException.