Read-only. The QueueInfo property retrieves the initial settings of the MSMQQueueInfo object used to open the queue.
Type: | MSMQQueueInfo |
Run time: | read-only |
Set object2=object1.QueueInfo
Syntax Element | Description |
---|---|
object1 | Queue (MSMQQueue) object that represents the open instance of the queue. |
object2 | Queue information (MSMQQueueInfo) object that defined the queue. |
MSMQQueueInfo object.
The QueueInfo property is used to determine the original settings used to create the queue. For example, it can be used to determine the original label of a queue when it has been changed.
This example opens a queue for sending messages, changes the label of the queue, and retrieves the original label using QueueInfo. To try this example using Microsoft® Visual Basic® (version 5.0), paste the code into the Code window of a form, run the example, and click the form.
Dim qinfo As MSMQQueueInfo
Dim q As MSMQQueue
Private Sub Form_Click()
Set qinfo = New MSMQQueueInfo
qinfo.PathName = ".\queueinfo6"
qinfo.Label = "Test Queue"
qinfo.Create
Set q = qinfo.Open(MQ_SEND_ACCESS, MQ_DENY_NONE)
MsgBox "Label is: " + qinfo.Label
qinfo.Label = "New Label"
MsgBox "Label is: " + qinfo.Label
q.Close
Set qinfo = q.QueueInfo
MsgBox "Label is: " + qinfo.Label
End Sub
Windows NT: Requires version 4.0 SP3 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mqoai.h.
Import Library: Use mqoa.lib.
Unicode: Defined only as Unicode.
Close, Create, QueueGuid, Open, Label, PathName