MessageBuffer.IDisposable.Dispose Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Releases the unmanaged resources used by the MessageBuffer and optionally releases the managed resources. This method cannot be inherited.
 virtual void System.IDisposable.Dispose() = IDisposable::Dispose;void IDisposable.Dispose();abstract member System.IDisposable.Dispose : unit -> unit
override this.System.IDisposable.Dispose : unit -> unitSub Dispose () Implements IDisposable.DisposeImplements
Remarks
Call this method when you are finished using the MessageBuffer. This method leaves the MessageBuffer in an unusable state. After calling this method, you must release all references to the MessageBuffer so the garbage collector can reclaim the memory that the MessageBuffer was occupying.
Note
Always call this method before you release your last reference to the MessageBuffer. Otherwise, the resources it is using are not freed until the garbage collector calls the MessageBuffer object's Finalize method.