Disposes the Sftp object and the underlying SSH object.
public void Dispose()
Calling this method ensures that all resources are freed. It is not necessary to call this method if the SFTP session is successfully closed using Disconnect method.
Releases the unmanaged resources used by the Sftp and optionally releases the managed resources.
protected virtual void Dispose(bool disposing)
true to release both managed and unmanaged resources; false to release only unmanaged resources.