expression.FTPStartServer( _ ByVal userName As String, _ ByVal password As String, _ ByVal hostName As String, _ ByVal options As FTPServerOption _ ) As ReturnCode
where expression is a variable that represents a FileTransfer Object
Parameters
- userName
- Specifies the user name. If this argument is null or empty, Reflection uses the current FTP User Name (which can be set using the FTP tab of the File Transfer dialog box, or using the FTPUserName property). If no FTP User Name has been set, Reflection displays the FTP Log In dialog box unless FTPServerOptions.NoLoginDialog is specified in the Options argument. If FTPServerOptions.NoLoginDialog is specified, FTPStartServer returns an error when UserName is not specified and no FTP User Name has been set. If FTPServerOptions.Anonymous is specified in the Options argument, the UserName argument is ignored.
- password
- Specifies the FTP password. If this argument is null or empty, Reflection uses the current FTP Password (which can be set using the FTP tab in the File Transfer dialog box, or using the FTPPassword property). If no password has been set, Reflection displays the FTP Log In dialog box unless FTPServerOptions.NoLoginDialog is specified in the Options argument. If FTPServerOptions.NoLoginDialog is specified, FTPStartServer generates an error when Password is not specified and no password has been set.
- hostName
- Specifies the host name or IP address. If this argument is null or empty, the current value of FTPHostName is used.
- options
- An FTPServerOption enumeration value that specifies additional, non-default behavior for the method. The possible values are: FTPServerOption.Anonymous Specifies that Reflection should use anonymous FTP when performing this transfer. FTPServerOption.NoLogInDialog Specifies that no FTP Log In dialog should appear if the FTP user name or password is not supplied. You can combine the two options by adding these values.
Return Value
One of the following ReturnCode enumerated values.
Member | Description |
---|---|
Cancelled | Cancelled. |
Error | Error. |
PermissionRequired | Permission is required. |
Success | Success. |
Timeout | Timeout condition. |
Truncated | The text is truncated. |