title: how check if port is currently used with IIS7 (webSite) in code behind?
body: <p>I developed a program "installer" that will add and configure a new website on IIS.
  My problem is that I want to check if the port given by the user is already used by another site before installing.</p>
  
  <p>My project is in C # WinForm style.
  Someone you have an idea?</p>
  
  <pre><code>string[] lPorts = System.IO.Ports.SerialPort.GetPortNames(); ?
  </code></pre>