Share via


MSMQDestination.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

(Introduced in MSMQ 3.0.) The IsOpen property of the MSMQDestination object, which can represent one or more queues, provides an indicator of whether the object is or is not open for sending messages.

Data type: Boolean
Run-time access: Read-only
Property IsOpen As Boolean  

Property Value

A Boolean value that indicates whether the MSMQDestination object is open for sending messages (True) or not (False).

Remarks

The IsOpen property returns True if the MSMQDestination object is open for sending messages, regardless of how the object was opened. MSMQDestination objects can be opened explicitly by calling MSMQDestination.Open or implicitly by referencing the object in MSMQMessage.Send.

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

See Also

MSMQDestination
MSMQDestination.Open
MSMQMessage.Send