Here we will see how we can update website properties in SharePoint 2013 client object model. Also you can check:
- Create SharePoint website using SharePoint 2013 client object model
- Hosting options in SharePoint 2013
- Create workflow using SharePoint designer 2013 in SharePoint 2013
Below is the full code:
ClientContext context = new ClientContext("http://SiteURL");
Web web = context.Web;
web.Title = "Title of New Site";
web.Description = "This is our new description for the site";
web.Update();
context.ExecuteQuery();
ExecuteQuery() method will execute the query in the server.
- Create SharePoint website using SharePoint 2013 client object model
- Hosting options in SharePoint 2013
- Create workflow using SharePoint designer 2013 in SharePoint 2013
Below is the full code:
ClientContext context = new ClientContext("http://SiteURL");
Web web = context.Web;
web.Title = "Title of New Site";
web.Description = "This is our new description for the site";
web.Update();
context.ExecuteQuery();
ExecuteQuery() method will execute the query in the server.