title: Given net.msmq Address, How Do I Check if this Queue Exists?
body: <p>I have a service, which inserts stuff into MSMQ via WCF. However, it can be a long time before any messages are inserted into the queue, which is when the error for a non-existing queue would occur.</p>
  
  <p>My idea is to loop through the WCF configuration and checking if the queue exists on startup. The MSMQ WCF endpoints have the address in the format <code>net.msmq://machine/private/queue</code>. </p>
  
  <p>Given a WCF MSMQ address in the net.msmq format, how can I check if this queue exists without queuing an actual message?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>The private queues can exist either on the same machine as the service, or on a remote server.</p>