An NDoc Documented Class Library

FTPConnection.UserName Property

User-name of account on the server.

public virtual string UserName {get; set;}

Property Value

The user-name of the account the FTP server that will be logged into upon connection.

Remarks

This property must be set before a connection with the server is made.

The 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

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace