Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Sftp.Dispose Method

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

Dispose()

Disposes the Sftp object and the underlying SSH object.

Declaration
public void Dispose()
Implements
IDisposable.Dispose()
Remarks

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.

Dispose(Boolean)

Releases the unmanaged resources used by the Sftp and optionally releases the managed resources.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

In This Article
  • Dispose()
  • Dispose(Boolean)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies