ClientSftpChannel - Dispose

[C#]

[ClientSftpChannel] public override sealed void Dispose();

Remarks

Releases all resources used by the object. If the channel is open or opening, then Dispose also initiates a [ClientSftpChannel]Close. Of course this doesn't imply the client is closed by the time Dispose returns, as the close operation might and probably will still be in progress.