Dispose(Boolean) Method
Disposes of the resources (other than memory) used by the MessageQueue.
Syntax
'Declaration <HostProtectionAttribute(Resources=HostProtectionResource.SharedState, SharedState=True)> Protected Overloads Overrides Sub Dispose( _ ByVal disposing As Boolean _ )
'Usage Dim instance As MessageQueue Dim disposing As Boolean instance.Dispose(disposing)
[HostProtection(Resources=HostProtectionResource.SharedState, SharedState=true)] protected override void Dispose( bool disposing )
[HostProtection(Resources=HostProtectionResource.SharedState, SharedState=true)] 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)