FTPConnectionUserName Property |
User-name of account on the server.
Namespace:
EnterpriseDT.Net.Ftp
Assembly:
edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntaxpublic virtual string UserName { get; set; }Public Overridable Property UserName As String
Get
Set
public:
virtual property String^ UserName {
String^ get ();
void set (String^ value);
}abstract UserName : string with get, set
override UserName : string with get, set
Property Value
Type:
StringThe user-name of the account the FTP server that will be logged into upon connection.
RemarksThis property must be set before a connection with the server is made.
ExamplesThe following example illustrates an FTP client
connecting to a server:
FTPConnection ftp = new FTPConnection();
ftp.ServerAddress = "my-server-name";
ftp.UserName = "my-username";
ftp.Password = "my-password";
ftp.Connect();
ftp.Close();
See Also