Dispose Method Dispose() Declaration public void Dispose() Implements IDisposable.Dispose() Dispose(Boolean) Frees, releases or resets managed resources. Declaration protected virtual void Dispose(bool disposing) Parameters Boolean disposing true when invoked from Dispose(); otherwise false.