Skip to content

Commit e9ede77

Browse files
committed
Fixing few small issues on the theme documentation
1 parent d46e8f6 commit e9ede77

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/declarative-customization/site-theming/sharepoint-site-theming-csom.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Before you get started, make sure that you're familiar with the following:
77
- [Using the Client Object Model](https://msdn.microsoft.com/en-us/library/ff798388.aspx)
88
- [Common Programming Tasks in the Managed Client Object Model](https://msdn.microsoft.com/en-us/library/ee537013.aspx)
99

10-
You will also need to install the [Microsoft.SharePointOnline.CSOM](https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/) NuGet package (version 16.1.6906.1200 or later).
10+
You will also need to reference the [Microsoft.SharePointOnline.CSOM](https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/) NuGet package (version 16.1.6906.1200 or later).
1111

1212
## CSOM code example
1313

@@ -20,17 +20,19 @@ The following example shows how to create a __Microsoft.Online.SharePoint.Tenant
2020
2121
```C#
2222
using System.Security;
23-
using SPClient=Microsoft.SharePoint.Client;
23+
using Microsoft.SharePoint.Client;
2424
using Microsoft.Online.SharePoint.TenantAdministration;
2525
using Microsoft.Online.SharePoint.TenantManagement;
2626

27-
SPClient.ClientContext ctx = new SPClient.ClientContext("https://mysite-admin.sharepoint.com/");
27+
...
28+
29+
ClientContext ctx = new ClientContext("https://mysite-admin.sharepoint.com/");
2830
var pwd = "mypassword";
2931
var passWord = new SecureString();
3032
foreach (char c in pwd.ToCharArray()) passWord.AppendChar(c);
31-
ctx.Credentials = new SPClient.SharePointOnlineCredentials("[email protected]", passWord);
33+
ctx.Credentials = new SharePointOnlineCredentials("[email protected]", passWord);
3234
Tenant tenant = new Tenant(ctx);
33-
SPClient.ClientObjectList<ThemeProperties> themes = tenant.GetAllTenantThemes();
35+
ClientObjectList<ThemeProperties> themes = tenant.GetAllTenantThemes();
3436
```
3537

3638
## Theme definition example
@@ -69,7 +71,7 @@ public class SPOTheme 
6971

7072
## Applying a theme
7173

72-
The methods described in this section are used to manage the available themes in your tenant. To _apply_ a theme to a particular SharePoint website, use the [SPWeb.ApplyTheme](https://msdn.microsoft.com/en-us/library/office/jj251358.aspx) method of the [Microsoft.SharePoint.Client.Web](https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.web.aspx) class.
74+
There's currently no supported API to programmatically apply a theme to specific site.
7375

7476
## Methods/properties of the Microsoft.Online.SharePoint.TenantAdministration.Tenant class
7577

@@ -118,7 +120,7 @@ __Return type:__ ClientResult<bool>
118120

119121
## Methods of the Microsoft.Online.SharePoint.TenantManagement.Tenant class
120122

121-
Use the following methods to manage themes in a multitenant environment.
123+
These are alternative APIs to manage your themes in tenant level.
122124

123125
### AddTenantTheme public method
124126
Add a theme to the tenant.

0 commit comments

Comments
 (0)