SoapMessageQueue.Dispose Method
Releases all resources used by the SoapMessageQueue.
Namespace: Microsoft.Web.Services2.Messaging
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim soapMessageQueue1 As SoapMessageQueue
soapMessageQueue1.Dispose()
Syntax
'Declaration
Public NotOverridable Sub Dispose()
public sealed void Dispose();
public: Void Dispose();
public final void Dispose();
public final function Dispose();
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. Otherwise, the resources it is using are not freed until the garbage collector calls the Microsoft.Web.Services2.Messaging.SoapMessageQueue.Finalize method.
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 Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
SoapMessageQueue Class
Microsoft.Web.Services2.Messaging Namespace