Starts authentication.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("Use method 'AuthAsync' instead.")] public IAsyncResult BeginAuthenticate( string userName, string password, AsyncCallback callback, Object state )
<ObsoleteAttribute("Use method 'AuthAsync' instead.")> Public Function BeginAuthenticate ( userName As String, password As String, callback As AsyncCallback, state As Object ) As IAsyncResult
public: [ObsoleteAttribute(L"Use method 'AuthAsync' instead.")] IAsyncResult^ BeginAuthenticate( String^ userName, String^ password, AsyncCallback^ callback, Object^ state )
[<ObsoleteAttribute("Use method 'AuthAsync' instead.")>] member BeginAuthenticate : userName : string * password : string * callback : AsyncCallback * state : Object -> IAsyncResult
Parameters
- userName (String)
- User login name.
- password (String)
- Password.
- callback (AsyncCallback)
- Callback to call when the asynchronous operation is complete.
- state (Object)
- User data.
Return Value
IAsyncResult
An IAsyncResult that references the asynchronous operation.
An IAsyncResult that references the asynchronous operation.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when SMTP client is not connected or is already authenticated. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119