Xceed .NET Libraries Documentation
Xceed.SSH.Client Assembly / Xceed.SSH.Client Namespace / SFtpSession Class
Members


In This Topic
    SFtpSession Class
    In This Topic
    Class that represents the session between a client and an SFTP server.
    Syntax
    'Declaration
     
    Public Class SFtpSession 
       Implements System.IDisposable 
    'Usage
     
    Dim instance As SFtpSession
    public class SFtpSession : System.IDisposable  
    Remarks

    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.

    Inheritance Hierarchy

    System.Object
       Xceed.SSH.Client.SFtpSession
          Xceed.SSH.Client.SFtpConnection

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Initializes a new instance of the SFtpSession class.  
    Top
    Public Fields
     NameDescription
    Public FieldThe default SFTP attributes.  
    Public FieldThe default valid file attributes.  
    Public Field  
    Public Field  
    Public Field  
    Top
    Protected Fields
     NameDescription
    Protected FieldThe SFtpClient that uses this SFtpSession.  
    Protected FieldThe SSHClient that uses this SFtpSession.  
    Protected FieldThe System.IO.TextWriter which will trace the communications between the client-side and the SFTP server.  
    Top
    Public Properties
     NameDescription
    Public Property  
    Public PropertyGets the SFtpClient that uses this SFtpSession.  
    Public PropertyGets a value that indicates the SFtp protocol version number that the SFtp server uses for the current session.  
    Public PropertyGets the SSHClient that uses this SFtpSession.  
    Public PropertyGets or sets a value, in seconds, indicating after what period of time an SFTP operation should timeout.  
    Public PropertyGets or sets the System.IO.TextWriter which will trace the communications between the client-side and the SFTP server.  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Overloaded.   
    Public Method  
    Public MethodOverloaded. Computes the optimal buffer size for SFtp file transfers on the specified stream.  
    Public MethodOverloaded.   
    Public Method  
    Public MethodOverloaded. Releases all cached connections.  
    Public Methodstatic (Shared in Visual Basic)  
    Public Methodstatic (Shared in Visual Basic)Converts Xceed.SSH.SFtp.Attr values to System.IO.FileAttributes values.  
    Public Methodstatic (Shared in Visual Basic)Converts an SFTP path to an Xceed FileSystem path.  
    Public Methodstatic (Shared in Visual Basic)Converts System.IO.FileAttributes to Xceed.SSH.SFtp.SFtpConstants.  
    Public Methodstatic (Shared in Visual Basic)Converts an Xceed FileSystem path to an SFTP path.  
    Public Methodstatic (Shared in Visual Basic)Attempts to parse a string produced by the ComputeHostedFullName Method that breaks down the information into individual components.  
    Top
    Protected Methods
     NameDescription
    Protected MethodAllows the SFtpSession object to attempt to free resources and perform other cleanup operations before it is reclaimed by garbage collection.  
    Top
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also