MSMQDestination.Close
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 Close method of the MSMQDestination object, which can represent one or more queues, explicitly closes the object when it is open for sending messages.
Sub Close
()
Parameters
This method has no parameters.
Return Values
This method has no return values.
Remarks
MSMQDestination objects can be closed explicitly by calling Close or implicitly by releasing the object or reinitializing it.
Applications can determine if the MSMQDestination object is open for sending messages by inspecting the MSMQDestination.IsOpen property.
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