I know that when I try to create new MessageQueue
, system throws InvalidOperationException
if the Message Queuing is not enabled.
But how to k
You have answered your own question there: try to create a new MessageQueue, and catch InvalidOperationException.
If you don't get an exception, MQ is enabled; if you get an exception, it's not enabled. (you may dispose of that MessageQueue instance if one was created, as you've only used it for detecting support)