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




Closes this session.
Syntax
'Declaration
 
Public Sub Close() 
'Usage
 
Dim instance As Session
 
instance.Close()
public void Close()
public: void Close(); 
public:
void Close(); 
Remarks

Always call this method to free up resources, even if an exception was thrown by another method call (or when getting an Exception on the Input- or OutputStreams).

Call Close to free resources, even if the server sent a close message.

This method is available by accessing the Session property and is provided for low-level control. It is normally used by invoking the SessionStream.Close method.

See Also

Reference

Session Class
Session Members


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