June 2003
Intermediate to advanced
800 pages
34h 20m
English
You need to retrieve a list of the public queues in Active Directory or the private queues on a given computer.
Use the GetPublicQueues or GetPrivateQueuesByMachine methods of the System.Messaging.MessageQueue class.
.NET allows you to examine and administer message queues and the messages they contain using the classes in the System.Messaging namespace. You can create a MessageQueue class that wraps a specific message queue by specifying the queue path in the constructor.
' Check if a queue named MyQueue exists on the current computer.
If MessageQueue.Exists(".\MyQueue") Then
' Show its name.
Dim Queue As New MessageQueue(".\MyQueue")
Console.WriteLine(Queue.QueueName)
End IfIn addition, ...
Read now
Unlock full access