System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue 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
    Disposes of the resources (other than memory) used by the MessageQueue.
    Syntax
    'Declaration
     
    
    Protected Overloads Overrides Sub Dispose( _
       ByVal disposing As Boolean _
    ) 
    'Usage
     
    
    Dim instance As MessageQueue
    Dim disposing As Boolean
     
    instance.Dispose(disposing)
    protected override void Dispose( 
       bool disposing
    )
    protected:
    void Dispose( 
       bool disposing
    ) override 

    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

    MessageQueue Class
    MessageQueue Members
    Overload List
    Base Implementation in Dispose(Boolean)