MSMQManagement
(Introduced in MSMQ 3.0.) The MSMQManagement object represents the elements of the state of a queue that are common to both destination queues and outgoing queues. It can be used to do the following:
-
Initialize an MSMQManagement object to represent the state of a specific active destination queue or outgoing queue. A call to initialize an MSMQManagement object implicitly creates and initializes an MSMQQueueManagement object for a destination queue or an MSMQOutgoingQueueManagement object for an outgoing queue. These objects provide information that is specific to a destination queue or an outgoing queue, respectfully.
-
Obtain administrative information that is common to both destination and outgoing queues.
Methods
The MSMQManagement object defines the following method.
| Method | Description |
|---|---|
|
Initializes an MSMQManagement object to represent the state of a specific active destination queue or outgoing queue, and then implicitly creates and initializes an MSMQQueueManagement object for a destination queue or an MSMQOutgoingQueueManagement object for an outgoing queue. |
Properties
The MSMQManagement object defines the following properties.
| Property | Description |
|---|---|
|
Returns the number of message bytes in the destination queue or outgoing queue. Run-time access: Read-only Data type: Variant |
|
|
Returns a flag that indicates whether a destination queue is a foreign queue or whether an outgoing queue is associated with a foreign queue. Run-time access: Read-only Data type: Long |
|
|
Returns a format name for the queue. Run-time access: Read-only Data type: String |
|
|
Returns a Boolean value that indicates whether the queue resides on the local computer or a remote computer. Run-time access: Read-only Data type: Boolean |
|
|
Returns the name of the computer where the queue resides. Run-time access: Read-only Data type: String |
|
|
Returns the number of messages in the queue. Run-time access: Read-only Data type: Long |
|
|
Returns a flag that indicates one of several queue types. Run-time access: Read-only Data type: Long |
|
|
Returns a flag that indicates whether a destination queue is or is not a transactional queue or whether an outgoing queue is associated with a transactional queue or with a nontransactional queue. Run-time access: Read-only Data type: Long |
Requirements
Windows NT/2000/XP:Included in Windows XP and Windows Server 2003.
Windows 95/98/Me: Unsupported.
Header: Declared in Mqoai.h.
Library: Use Mqoa.lib.