System.Messaging Reference (Document! X Sample)
Dispose(Boolean) Method



System.Messaging Namespace > MessageQueueTransaction Class > Dispose Method : Dispose(Boolean) Method
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases the unmanaged resources used by the MessageQueueTransaction and optionally releases the managed resources.
Syntax
'Declaration
 
Protected Overloads Overridable Sub Dispose( _
   ByVal disposing As Boolean _
) 
'Usage
 
Dim instance As MessageQueueTransaction
Dim disposing As Boolean
 
instance.Dispose(disposing)
protected virtual void Dispose( 
   bool disposing
)
protected:
virtual void Dispose( 
   bool disposing
) 

Parameters

disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageQueueTransaction Class
MessageQueueTransaction Members
Overload List