Xceed .NET Libraries Documentation
Xceed.Ftp Assembly / Xceed.Ftp Namespace / FtpFile Class / FtpFile Constructor
A reference to an FtpConnection object that represents the connection with an FTP server.
The fully qualified name of the file which may or may not physically exist. Some FTP servers may be case-sensitive!


In This Topic
    FtpFile Constructor
    In This Topic
    Initializes a new instance of the FtpFile class specifying the FtpConnection object that represents the connection with an FTP server as well as the fully qualified name of an underlying physical file.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal connection As FtpConnection, _
       ByVal fullName As String _
    )
    'Usage
     
    Dim connection As FtpConnection
    Dim fullName As String
     
    Dim instance As New FtpFile(connection, fullName)
    public FtpFile( 
       FtpConnection connection,
       string fullName
    )

    Parameters

    connection
    A reference to an FtpConnection object that represents the connection with an FTP server.
    fullName
    The fully qualified name of the file which may or may not physically exist. Some FTP servers may be case-sensitive!
    Remarks

    By default, the file will be created in the current working folder. To create/access a file in another location, an instance of an FtpFolder must be used and the FtpFile retrieved using the Xceed.FileSystem.AbstractFolder.GetFile method.

    The file's parent folder can be retrieved using the Xceed.FileSystem.FileSystemItem.ParentFolder property.

    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