1. //StartingwithClientContext,theconstructorrequiresaURLtothe
  2. //serverrunningSharePoint.
  3. ClientContextcontext=newClientContext("http://SiteUrl");
  4. //TheSharePointwebattheURL.
  5. Webweb=context.Web;
  6. //Wewanttoretrievetheweb'sproperties.
  7. context.Load(web);
  8. //Executethequerytotheserver.
  9. context.ExecuteQuery();
  10. //Now,theweb'spropertiesareavailableandwecoulddisplay
  11. //webproperties,suchastitle.
  12. stringwebTitle=web.Title;