title: How to know programmatically whether Message Queueing is enabled on the machine or not?
body: <p>I know that when I try to create new <code>MessageQueue</code>, system throws <code>InvalidOperationException</code> if the Message Queuing is not enabled. </p>
  
  <p>But how to know <strong>programmatically</strong> whether Message Queueing is enabled on the machine or not?
  I am using C# 2.0 &amp; C# 4.0 in two different code bases.</p>