From MSDN: "Exists is an expensive operation. Use it only when it is
necessary within the application."
Is there another way to do it?
Kimmo Laine
"Cezary Nolewajka" <c.*********************@no-sp-am-eh-mail.com> wrote in
message news:uc**************@TK2MSFTNGP12.phx.gbl...
You can check a queue existance using the MessageQueue.Exists method.
Then you know whether the queue can be used.
--
Cezary Nolewajka
mailto:c.*********************@no-sp-am-eh-mail.com
remove all "no-sp-am-eh"s to reply
"Kimmo Laine" <reply.to@newsgroup> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
one stupid question? How can i be sure that i have valid queue:
using System;
using System.Messaging;
// . . .
MessageQueue q = new MessageQueue( ".\\Private$\\myQueue" );
// Can i call send!?!?
q.Send( "Hello!" );
Is there a way to open existing queue?
thc
Kimmo Laine