The FileTransferClient type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkFileTransferClient
Creates new instance of FileTransferClient class.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkAbort
Abort pending operations.
Public methodSupported by the .NET Compact FrameworkConnect(String, FileTransferMode)
Connects to the server using chosen protocol.
Public methodSupported by the .NET Compact FrameworkConnect(String, Int32, FileTransferMode)
Connects to the server using chosen protocol.
Public methodSupported by the .NET Compact FrameworkCreateDirectory
Creates a directory on the server.
Public methodSupported by the .NET Compact FrameworkDelete(FileSet)
Deletes specified files and/or directories on the server.
Public methodSupported by the .NET Compact FrameworkDelete(String, TraversalMode)
Deletes specified files and/or directories on the server. Accepts wildcards.
Public methodSupported by the .NET Compact FrameworkDeleteFile
Deletes a file on the server.
Public methodSupported by the .NET Compact FrameworkDirectoryExists
Detects whether the specified directory exists on the server.
Public methodSupported by the .NET Compact FrameworkDisconnect
Informs the server that the connection is about to close and terminates the connection.
Public methodSupported by the .NET Compact FrameworkDispose
Disposes the object. After calling this the inner instance will be disposed as well and Inner will be set to null.
Public methodSupported by the .NET Compact FrameworkDownload(String, String)
Downloads the specified file or directory hierarchy from the server to the local directory. Accepts wildcards.
Public methodSupported by the .NET Compact FrameworkDownload(FileSet, String)
Downloads the specified files and/or directories from the server to the local directory.
Public methodSupported by the .NET Compact FrameworkDownload(String, String, TraversalMode)
Downloads the specified file or directory hierarchy from the server to the local directory. Accepts wildcards.
Public methodSupported by the .NET Compact FrameworkDownload(FileSet, String, TransferMethod, ActionOnExistingFiles)
Downloads the specified files and/or directories from the server to the local directory.
Public methodSupported by the .NET Compact FrameworkDownload(String, String, TraversalMode, TransferMethod, ActionOnExistingFiles)
Downloads the specified file or directory hierarchy from the server to the local directory. Accepts wildcards.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkFileExists
Detects whether the specified file exists on the server.
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetCurrentDirectory
Gets the absolute path of the current working directory on the remote server.
Public methodSupported by the .NET Compact FrameworkGetDownloadStream(String)
Returns a Stream for reading data from the remote file.
Public methodSupported by the .NET Compact FrameworkGetDownloadStream(String, SeekOrigin, Int64)
Returns a Stream for reading data from the remote file.
Public methodSupported by the .NET Compact FrameworkGetFile(String, Stream)
Downloads the remote file to the data stream.
Public methodSupported by the .NET Compact FrameworkGetFile(String, String)
Downloads the remote file to the local file, overriding it if it already exists.
Public methodSupported by the .NET Compact FrameworkGetFile(String, Stream, Int64)
Downloads the specified part of the remote file to the data stream.
Public methodSupported by the .NET Compact FrameworkGetFile(String, String, Int64, Int64)
Downloads the specified part of the remote file to the specified offset of the local file.
Public methodSupported by the .NET Compact FrameworkGetFileDateTime
Retrieves the modification date and time of the specified remote file.
Public methodSupported by the .NET Compact FrameworkGetFileLength
Retrieves the size of the specified remote file.
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetChecksum(String, ChecksumAlgorithm)
Returns the checksum of the specified file on the server.
Public methodSupported by the .NET Compact FrameworkGetChecksum(String, ChecksumAlgorithm, Int64, Int64)
Returns the checksum of the specified file on the server.
Public methodSupported by the .NET Compact FrameworkGetInfo
Retrieves a FileSystemItem containing the information about the specified remote file or directory.
Public methodSupported by the .NET Compact FrameworkGetItems(String)
Retrieves the list of files and directories. Matching directories are searched recursively.
Public methodSupported by the .NET Compact FrameworkGetItems(FileSet)
Retrieves the list of files and directories specified by the set.
Public methodSupported by the .NET Compact FrameworkGetItems(String, TraversalMode)
Retrieves the list of files and directories.
Public methodSupported by the .NET Compact FrameworkGetList()()()()
Retrieves the list of files and directories in the current server directory.
Public methodSupported by the .NET Compact FrameworkGetList(String)
Retrieves the list of files and directories in the current server directory.
Public methodSupported by the .NET Compact FrameworkGetNameList()()()()
Retrieves the list of file and directory names in the current remote directory.
Public methodSupported by the .NET Compact FrameworkGetNameList(String)
Retrieves the list of file and directory names.
Public methodSupported by the .NET Compact FrameworkGetRawList()()()()
Retrieves the raw list of files and directories in the current remote directory using a raw text format.
Public methodSupported by the .NET Compact FrameworkGetRawList(String)
Retrieves the raw list of files and directories using a raw text format.
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetUploadStream(String)
Returns a Stream for writing data to the remote file.
Public methodSupported by the .NET Compact FrameworkGetUploadStream(String, SeekOrigin, Int64)
Returns a Stream for writing data to the remote file.
Public methodSupported by the .NET Compact FrameworkChangeDirectory
Changes the current working directory on the server.
Public methodSupported by the .NET Compact FrameworkCheckConnectionState
Checks whether the session is still connected. Throws an exception on error.
Public methodSupported by the .NET Compact FrameworkKeepAlive
Sends a command to the server to keep the connection alive.
Public methodSupported by the .NET Compact FrameworkLogin(SshGssApiCredentials)
Authenticates to the server using GSSAPI. Kerberos (not on .NET CF) and NTLM methods are supported. This method cannot be used with FTP protocol.
Public methodSupported by the .NET Compact FrameworkLogin(String, SshPrivateKey)
Authenticates the user to the server using his private key and initializes the SFTP session.
Public methodSupported by the .NET Compact FrameworkLogin(String, String)
Authenticates the user to the server.
Public methodSupported by the .NET Compact FrameworkLogin(String, String, SshPrivateKey)
Authenticates the user to the server using a combination of password and public key and initializes the SFTP session. This method cannot be used with FTP protocol.
Public methodSupported by the .NET Compact FrameworkLogin(String, String, String)
Authenticates the user to the FTP server. This method cannot be used with SFTP protocol.
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkPutFile(Stream, String)
Uploads the content of the data stream to the file on the server, overriding it if it already exists.
Public methodSupported by the .NET Compact FrameworkPutFile(String, String)
Uploads the content of the local file to the file on the server, overriding it if it already exists.
Public methodSupported by the .NET Compact FrameworkPutFile(Stream, String, Int64, Int64)
Uploads the content of the data stream to the specified offset of the file on the server.
Public methodSupported by the .NET Compact FrameworkPutFile(String, String, Int64, Int64, Int64)
Uploads the specified part of the local file to the specified offset of the file on the server.
Public methodSupported by the .NET Compact FrameworkRemoveDirectory
Deletes an empty remote directory with the specified pathname.
Public methodSupported by the .NET Compact FrameworkRename
Renames or moves a file or directory on the server.
Public methodSupported by the .NET Compact FrameworkSetFileDateTime
Sets the modification date and time of the specified remote file.
Public methodSupported by the .NET Compact FrameworkSetSocketFactory
Sets the socket factory to be used to create communication sockets.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkUpload(String, String)
Uploads the specified file or directory hierarchy to the directory on the server. Accepts wildcards.
Public methodSupported by the .NET Compact FrameworkUpload(FileSet, String)
Uploads the specified local files and/or directories to the directory to the server.
Public methodSupported by the .NET Compact FrameworkUpload(String, String, TraversalMode)
Uploads the specified file or directory hierarchy to the directory on the server. Accepts wildcards.
Public methodSupported by the .NET Compact FrameworkUpload(FileSet, String, TransferMethod, ActionOnExistingFiles)
Uploads the specified local files and/or directories to the directory to the server.
Public methodSupported by the .NET Compact FrameworkUpload(String, String, TraversalMode, TransferMethod, ActionOnExistingFiles)
Uploads the specified file or directory hierarchy to the directory on the server. Accepts wildcards.

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkEncoding
Gets or sets the Encoding to use to encode and decode command parameters and server responses.
Public propertySupported by the .NET Compact FrameworkFingerprint
Gets the server public key fingerprint (for SFTP) or the server certificate thumbprint (for FTP/SSL).
Public propertySupported by the .NET Compact FrameworkFtpPassiveMode
Gets or sets a value which specifies the way data transfers are made. This is used only when FTP protocol is used.
Public propertySupported by the .NET Compact FrameworkFtpTransferMode
Gets or sets the data transfer mode. This is used only when FTP protocol is used.
Public propertySupported by the .NET Compact FrameworkInner
Gets the inner protocol client. It can be Ftp or Sftp class instance. This is based on Connect method parameter.
Protected propertySupported by the .NET Compact FrameworkInstanceId
Gets instance ID (intended for logging purposes).
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkIsAuthenticated
Gets a value indicating whether the session is authenticated.
(Overrides NetworkSession..::..IsAuthenticated.)
Public propertySupported by the .NET Compact FrameworkIsBusy
Gets a value indicating whether there any operation (method) in progress. This is used only when FTP protocol is used.
Public propertySupported by the .NET Compact FrameworkIsConnected
Gets a value indicating whether the session is connected.
(Overrides NetworkSession..::..IsConnected.)
Public propertySupported by the .NET Compact FrameworkIsSecured
Gets the value indicating whether the control connection is secured.
Public propertySupported by the .NET Compact FrameworkLocalEndPoint
Gets the local client EndPoint.
Public propertySupported by the .NET Compact FrameworkLogWriter
Gets or sets the LogWriter used by this object.
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkMaxDownloadSpeed
Gets or sets the maximum allowed download speed, in kilobytes. For unlimited speed, set this to zero.
Public propertySupported by the .NET Compact FrameworkMaxUploadSpeed
Gets or sets the maximum allowed upload speed, in kilobytes. For unlimited speed, set this to zero.
Public propertySupported by the .NET Compact FrameworkPassive Obsolete.
Public propertySupported by the .NET Compact FrameworkProxy
Gets or sets the network proxy to use to access a remote server.
Public propertySupported by the .NET Compact FrameworkRemoteEndPoint
Gets the remote server EndPoint.
Public propertySupported by the .NET Compact FrameworkSecureTransfers Obsolete.
Public propertySupported by the .NET Compact FrameworkServerName
Gets the server name, if available.
(Overrides NetworkSession..::..ServerName.)
Public propertySupported by the .NET Compact FrameworkServerPort
Gets the server port, if available.
(Overrides NetworkSession..::..ServerPort.)
Public propertySupported by the .NET Compact FrameworkSession Obsolete.
Public propertySupported by the .NET Compact FrameworkSettings
Gets the options set used by this object.
Public propertySupported by the .NET Compact FrameworkSshSession
Gets the SSH session used by the SFTP part of the client.
Public propertySupported by the .NET Compact FrameworkTimeout
Gets or sets the length of time in milliseconds before the operation times out (specify -1 or 0 to indicate that the request does not time out).
Public propertySupported by the .NET Compact FrameworkTransferMode Obsolete.
Public propertySupported by the .NET Compact FrameworkTransferType
Gets or sets the data transfer type.
Public propertySupported by the .NET Compact FrameworkUserName
Gets the authenticated user name, if available.
(Overrides NetworkSession..::..UserName.)

Events

  NameDescription
Public eventSupported by the .NET Compact FrameworkDeleteProgressChanged
Occurs when a significant action occurs in Delete(String, TraversalMode) method. Notifies the client about currently processing directory, currently deleting file and progress of the delete.
Public eventSupported by the .NET Compact FrameworkFingerprintCheck
Occurs when a fingerprint is received from the server and needs to be validated.
Public eventSupported by the .NET Compact FrameworkListItemReceived
Occurs when a file and directory listing item is received by the GetList()()()(), GetRawList()()()(), GetNameList()()()() or GetItems(String) methods. Notifies the client about currently processed item.
Public eventSupported by the .NET Compact FrameworkProblemDetected
Occurs when a problem is detected in Download(String, String), Upload(String, String), Delete(String, TraversalMode) or GetItems(String) methods, making it possible for the handler to choose a desired reaction.
Public eventSupported by the .NET Compact FrameworkTransferProgressChanged
Occurs when a significant action occurs in Download(String, String), Upload(String, String) methods. Notifies the client about currently processing directory, currently transferring file and progress of the transfer.
Public eventSupported by the .NET Compact FrameworkTraversing
Occurs when a significant action occurs in Download(String, String), Upload(String, String), Delete(String, TraversalMode) or GetItems(String) methods. Notifies the client about traversing hierarchy structure.
Public eventSupported by the .NET Compact FrameworkValidatingCertificate
Occurs when an FTP/SSL server certificate needs to be validated.

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate propertySupported by the .NET Compact FrameworkIFtp..::..Settings

See Also