

'DeclarationPublic Class SFtpSession Implements System.IDisposable
'UsageDim instance As SFtpSession
public class SFtpSession : System.IDisposable
The SFtpSession class implements the System.IDisposable interface, meaning that every SFtpSession object that is created should also be disposed of by calling the Dispose method or, in C#, creating the SFtpConnection within a using block. If an instance of an SFtpSession object is not disposed of, connections with the SFTP server may remain active until the server times-out or the garbage-collector passes.
System.Object
Xceed.SSH.Client.SFtpSession
Xceed.SSH.Client.SFtpConnection
| Name | Description | |
|---|---|---|
![]() | SFtpSession Constructor | Overloaded. Initializes a new instance of the SFtpSession class. |
| Name | Description | |
|---|---|---|
![]() | DefaultSFtpAttributes | The default SFTP attributes. |
![]() | DefaultValidFileAttributes | The default valid file attributes. |
![]() | HostedFullNamePrefix | |
![]() | MaximumStreamBufferSize | |
![]() | MinimumStreamBufferSize |
| Name | Description | |
|---|---|---|
![]() | SftpClientInternal | The SFtpClient that uses this SFtpSession. |
![]() | SshClientInternal | The SSHClient that uses this SFtpSession. |
![]() | TraceWriterInternal | The System.IO.TextWriter which will trace the communications between the client-side and the SFTP server. |
| Name | Description | |
|---|---|---|
![]() | Connected | TODODOC |
![]() | SFtpClient | Gets the SFtpClient that uses this SFtpSession. |
![]() | SFtpServerProtocolVersion | Gets a value that indicates the SFtp protocol version number that the SFtp server uses for the current session. |
![]() | SshClient | Gets the SSHClient that uses this SFtpSession. |
![]() | Timeout | Gets or sets a value, in seconds, indicating after what period of time an SFTP operation should timeout. |
![]() | TraceWriter | Gets or sets the System.IO.TextWriter which will trace the communications between the client-side and the SFTP server. |
| Name | Description | |
|---|---|---|
![]() ![]() | ComputeFullName | Overloaded. |
![]() | ComputeHostedFullName | Computes a human-readable full pathname starting with "sftp://hostname" representing the fully qualified path of all host files containing the item and the path of the item itself. |
![]() | ComputeStreamBufferSize | Overloaded. Computes the optimal buffer size for SFtp file transfers on the specified stream. |
![]() | Connect | Overloaded. |
![]() | Disconnect | |
![]() | Dispose | Overloaded. Releases all cached connections. |
![]() ![]() | IsSSHException | |
![]() ![]() | ToFileSystemFileAttributes | Converts Xceed.SSH.SFtp.Attr values to System.IO.FileAttributes values. |
![]() ![]() | ToFileSystemPath | Converts an SFTP path to an Xceed FileSystem path. |
![]() ![]() | ToSFtpFileAttributes | Converts System.IO.FileAttributes to Xceed.SSH.SFtp.SFtpConstants. |
![]() ![]() | ToSftpPath | Converts an Xceed FileSystem path to an SFTP path. |
![]() ![]() | TryParseHostedFullName | Attempts to parse a string produced by the ComputeHostedFullName Method that breaks down the information into individual components. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Standard: netstandard2.0, netstandard2.1
.NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.