Dispose is a method that all objects that implement the IDisposable interface. Some classes also have a Close method when it is logical for them to do so. Almost universally, a Close method will call the Dispose method and possibly more besides. If there is a Close method then call it, otherwise call Dispose.