 | FTPFileToBeUpdate Method |
Check if a file (on a FTP) need an update via FTP (other FTP)
Namespace: ProFTPNetLibraryAssembly: ClientFTPNetLibrary (in ClientFTPNetLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static FTPUpdateFileError FileToBeUpdate(
Uri fileToUpdate,
Uri updatedFile,
string usernameToUpdate,
string passwordToUpdate,
string usernameUpdated,
string passwordUpdated,
string proxyAddress,
bool passive,
int port,
bool keepAlive
)
Public Shared Function FileToBeUpdate (
fileToUpdate As Uri,
updatedFile As Uri,
usernameToUpdate As String,
passwordToUpdate As String,
usernameUpdated As String,
passwordUpdated As String,
proxyAddress As String,
passive As Boolean,
port As Integer,
keepAlive As Boolean
) As FTPUpdateFileError
Parameters
- fileToUpdate
- Type: SystemUri
Uri of the file to check (es: "ftp://www.domain1.com/myoldfile.txt") - updatedFile
- Type: SystemUri
Uri of the new file (es: "ftp://www.domain2.com/mynewfile.txt") - usernameToUpdate
- Type: SystemString
FTP access username of the update file - passwordToUpdate
- Type: SystemString
FTP access password of the update file - usernameUpdated
- Type: SystemString
FTP access username of the updated file - passwordUpdated
- Type: SystemString
FTP access password of the updated file - proxyAddress
- Type: SystemString
FTP proxy (string.empty if unknown or not used) - passive
- Type: SystemBoolean
FTP passive mode enabling (false if unknown or not used) - port
- Type: SystemInt32
FTP access port (usually 21) - keepAlive
- Type: SystemBoolean
Define if you need to keep alive the connection after the process (usually false)
Return Value
Type:
FTPUpdateFileErrorUpdateFileError returned information
See Also