ThmxTheme.Open Method (SPSite, String)
SharePoint 2010
Opens the theme package associated with the specified SharePoint Web site and server-relative URL.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- site
- Type: Microsoft.SharePoint.SPSite
An SPSite object that identifies the SharePoint Web site to which the theme is applied.
- url
- Type: System.String
A string providing the server-relative URL.
Return Value
Type: Microsoft.SharePoint.Utilities.ThmxThemeA ThmxTheme object that represents the opened theme.
| Exception | Condition |
|---|---|
| ArgumentNullException |
url is null. |
This method calls the Open(SPFile) method with site.OpenWeb(url, false). GetFile(url).