edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

ExFTPConnectionUserName Property

User-name of account on the server.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public override string UserName { get; set; }

Property Value

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

Remarks

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

Example

The following example illustrates an FTP client connecting to a server:
ExFTPConnection ftp = new SecureFTPConnection(); ftp.Protocol = FileTransferProtocol.SFTP; ftp.ServerAddress = "my-server-name"; ftp.UserName = "my-username"; ftp.Password = "my-password"; ftp.Connect(); ftp.Close();

See Also