Set Site Logo Url in SharePoint using CSOM

The example in this topic show how to use CSOM to Set Site Logo Url in SharePoint

  • using Microsoft.SharePoint.Client;
  •  
  • using (ClientContext clientContext = new ClientContext("http://MyServer/sites/MySiteCollection"))
  • {
  • Web oWeb = clientContext.Web;
  •  
  • // Upload logo image to any libary and give relative URL over here
  • oWeb.SiteLogoUrl = "http://MyServer/sites/MySiteCollection/SiteAssets/untitled.png";
  • oWeb.Update();
  • clientContext.ExecuteQuery();
  • }
  •  

Similar examples using different APIs:

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

We value your feedback:

Page URL:

Name:

 

Email:

 
 

Feedback:

 

© 2019 Code SharePoint