Xceed FTP Library Documentation
UserName property
XceedFtp control reference > Properties > UserName property

Description

Use this property to specify the user to log in when connecting to the FTP server.

When the CurrentState property's value is any value other than fstNotConnected, this property is read-only.

Data type

String

Default value

"Anonymous"

Declaration  

HRESULT UserName( [out, retval] BSTR* pbstrVal );

HRESULT UserName( [in] BSTR bstrVal );

See also

ChangeUser method (to change the current logged in user without disconnecting)