Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Read All Properties for Web client object
namespace Publishing.Navigation.Client.Samples
class PortalNavigation
/// <summary>
/// Read Web All Properties
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
public static PropertyValues LoadWebWithProperties(string url)
using (var clientContext = new ClientContext(url))
var web = clientContext.Web;
clientContext.Load(web,w => w.AllProperties);
return web.AllProperties;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment