title: How can i get the Physical path of a site in IIS using c#?
body: <p>I need to remove a site when the user uninstalls an application. I have no idea of the site name , but the Physical path will always be the same. So is there a way i can search throgh the returned list of sites and check if the particular physical path is a certain value , I will know that that is the site and from that get the site name to delete .
  Would the app pool for the site be in taht object ?</p>
  <p>I am using the following to get the websites ,</p>
  <pre><code>        var iisManager = new ServerManager();
          SiteCollection sites = iisManager.Sites;
  </code></pre>
  <p>Or is there a way to get the &quot;Advanced Settinsg&quot; of a site ?</p>