QueueInfo
MSMQQueue

Read-only. The QueueInfo property retrieves the initial settings of the MSMQQueueInfo object used to open the queue.

Quick Info

Type: MSMQQueueInfo
Run time: read-only

Syntax

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.

Return Values

MSMQQueueInfo object.

Remarks

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.

Example

This example opens a queue for sending messages, changes the label of the queue, then 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, and then 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
  

See Also

Close, Create, QueueGuid, Open, Label, PathName


© 1997 by Microsoft Corporation. All rights reserved.