Authenticates user. Authenticate method chooses strongest possible authentication method supported by server.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public void Authenticate( string userName, string password )
Public Sub Authenticate ( userName As String, password As String )
public: void Authenticate( String^ userName, String^ password )
member Authenticate : userName : string * password : string -> unit
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when FTP client is not connected or is already authenticated. |
ArgumentNullException | Is raised when userName is null. |
FTP_ClientException | Is raised when FTP server returns error. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119