Set Web Description in SharePoint using CSOM

The example in this topic show how to use CSOM to Set Web Description in SharePoint

  • using Microsoft.SharePoint.Client;
  •  
  • using (ClientContext clientContext = new ClientContext("http://MyServer/sites/MySiteCollection"))
  • {
  • Web oWeb = clientContext.Web;
  • oWeb.Description = "New Web description";
  • oWeb.Update();
  • clientContext.ExecuteQuery();
  • }

Thank you for reading this article. This code was tested in SharePoint 2013


© 2019 Code SharePoint