An NDoc Documented Class Library |

# FTPConnection Properties

The properties of the FTPConnection class are listed below. For a complete list of FTPConnection class members, see the FTPConnection Members topic.

#### Public Static Properties

LogFile | Name of file to which logs will be written.
LogLevel | Determines the level of logs written.
LogToConsole | Determines whether or not logs will be written to the console.
LogToTrace | Determines whether or not logs will be written using Trace.

#### Public Instance Properties

AccountInfo | Account information string.
ActivePortRange | Specifies the range of ports to be used for data-channels in active mode.
AutoLogin | Determines if the component will automatically log in upon connection.
AutoPassiveIPSubstitution | Use `AutoPassiveIPSubstitution` to ensure that data-socket connections are made to the same IP address that the control socket is connected to.
BuildTimestamp | The assembly's build timestamp.
CloseStreamsAfterTransfer | Determines if transfer-methods taking Streams as arguments should close the stream once the transfer is completed.
CommandEncoding | The character-encoding to use for FTP control commands and when dealing with file- and directory-paths.
ConnectMode | The connection-mode (passive or active) of data-channels.
Container (inherited from Component) | Gets the IContainer that contains the Component.
DataEncoding | The character-encoding to use for transferring data in ASCII mode.
DeleteOnFailure | Controls whether or not a file is deleted when a failure occurs.
DirectoryEmptyMessages | Holds fragments of server messages that indicate a directory is empty.
EventsEnabled | Determines whether or not events are currently enabled.
FileInfoParser | Override the chosen file factory with a user created one - meaning that a specific parser has been selected
FileNotFoundMessages | Holds fragments of server messages that indicate a file was not found
FilePathEncoding | Obsolete. The character-encoding to use when dealing with file- and directory-paths.
IsConnected | Indicates whether the FTP client is currently connected with the server.
IsTransferring | Indicates whether the FTP client is currently transferring data.
LastTransferCancelled | Indicates whether or not the most recent transfer was cancelled.
LastValidReply | The latest valid reply from the server.
LocalDirectory | The working directory on the local file-system into which files are downloaded.
Name | Name of this component.
ParentControl | Reference to Windows Forms controls (if available).
ParsingCulture | The culture for parsing file listings.
Password | Password of account on the server.
Protocol | Type of file transfer to use.
PublicIPAddress | IP address of the client as the server sees it.
ServerAddress | The domain-name or IP address of the FTP server.
ServerDirectory | The initial/current working directory on the server.
ServerPort | The port on the server to which to connect the control-channel.
ShowHiddenFiles | Include hidden files in operations that involve listing of directories, and if supported by the server (FTP and FTPS).
Site |
StrictReturnCodes | Controls whether or not checking of return codes is strict.
SynchronizePassiveConnections | For cases where the FTP server does not properly manage PASV connections, it may be necessary to synchronize the creation of passive data sockets. It has been reported that some FTP servers (such as those at Akamai) appear to get confused when multiple FTP clients from the same IP address attempt to connect at the same time (the server sends the same port number to multiple clients).
TimeDifference | [FTP/FTPS Only] Time difference between server and client (relative to client).
TimeIncludesSeconds | [FTP/FTPS Only] Indicates whether seconds were included in the most recent directoy listing.
Timeout | TCP timeout (in milliseconds) of the underlying sockets (0 means none).
TransferBufferSize | The size of the buffers used in writing to and reading from the data-sockets.
TransferCompleteMessages | Holds fragments of server messages that indicate a transfer completed.
TransferNotifyInterval | The number of bytes transferred between each notification of the BytesTransferred event.
TransferNotifyListings | By default the BytesTransferred event is not triggered during directory listings - this property can be used to enable this behaviour.
TransferType | The current file transfer type (BINARY or ASCII).
UseGuiThreadIfAvailable | Determines whether or not event-handlers will be run on the GUI thread if one is available.
UserName | User-name of account on the server.
Version | The version of the assembly.
WelcomeMessage | Server's welcome message.
WorkingDirectory | Obsolete. The current working directory on the server.

#### Protected Instance Properties

DesignMode (inherited from Component) | Gets a value that indicates whether the Component is currently in design mode.
Events (inherited from Component) | Gets the list of event handlers that are attached to this Component.

#### Protected Internal Instance Properties

ActiveClient | Reference to the currently active IFileTransferClient.

#### See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace