SoapMessageQueue.Dispose Method
Releases all resources used by the SoapMessageQueue.
Namespace: Microsoft.Web.Services3.Messaging
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim soapMessageQueue1 As SoapMessageQueue
soapMessageQueue1.Dispose()
Syntax
'Declaration
Public Sub Dispose()
public void Dispose();
~SoapMessageQueue();
public void Dispose();
public final function Dispose() : Void;
Remarks
Call Dispose when you are finished using the SoapMessageQueue. The Dispose method leaves the SoapMessageQueue in an unusable state. After calling Dispose, you must release all references to the SoapMessageQueue so the garbage collector can reclaim the memory that the SoapMessageQueue was occupying.
Note
Always call Dispose before you release your last reference to the SoapMessageQueue.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
SoapMessageQueue Class
SoapMessageQueue Members
Microsoft.Web.Services3.Messaging Namespace