MSMQQueue.IsOpen
Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista
The IsOpen property of the MSMQQueue object indicates whether the queue is open.
This property is superseded by MSMQQueue.IsOpen2 in MSMQ 3.0.
Data type: | Short |
Run-time access: | Read-only |
Property IsOpen As Short
Property Value
A Short set to one of the following values:
1
The queue is open.
0
The queue is not open.
Remarks
IsOpen returns 1 only when MSMQQueue.Handle is set to a valid queue handle. If Message Queuing has set MSMQQueue.Handle to INVALID_HANDLE_VALUE, MSMQQueue.IsOpen will always return 0.
Requirements
Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Mqoai.h.
Library: Use Mqoa.lib.
See Also
MSMQQueue
MSMQQueueInfo
MSMQQueueInfo.Create
MSMQQueueInfo.Open
MSMQQueueInfo.PathName