PowerTCP SSH and SFTP for .NET
Close Method (Sftp)




Closes this SFTP session.
Syntax
'Declaration
 
Public Overrides Sub Close() 
'Usage
 
Dim instance As Sftp
 
instance.Close()
public override void Close()
public: void Close(); override 
public:
void Close(); override 
Remarks
Do not forget to call this method to free up resources - even if you got an exception from one of the other methods. Sometimes these other methods may throw an exception, saying that the underlying channel is closed (this can happen, e.g., if the other server sent a close message.) However, as long as you have not called the Close method, you may waste resources.
See Also

Reference

Sftp Class
Sftp Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic