title: Breaking the security inheritance of a site (SharePoint, C#)
body: <p>The following code snippet breaks the security inheritance of a list. </p>
  
  <pre><code>        string siteUrl = "http://MyServer/sites/MySiteCollection";
          ClientContext oContext = new ClientContext(siteUrl);
          SP.List oList = oContext.Web.Lists.GetByTitle("Announcements");
  
          oList.BreakRoleInheritance(true, false);
  
          oContext.ExecuteQuery();
  </code></pre>
  
  <p>How can I do the same for a site? Reference: <a href="http://msdn.microsoft.com/en-us/library/ee535228.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ee535228.aspx</a></p>