System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueueEnumerator Class / Dispose Method / Dispose(Boolean) Method
true to release both managed and unmanaged resources; false to release only unmanaged resources.



In This Topic
    Dispose(Boolean) Method
    In This Topic
    Releases the unmanaged resources used by the MessageQueueEnumerator and optionally releases the managed resources.
    Syntax
    'Declaration
     
    
    Protected Overloads Overridable Sub Dispose( _
       ByVal disposing As Boolean _
    ) 
    'Usage
     
    
    Dim instance As MessageQueueEnumerator
    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