ImapLoginAsync Method (String, String, AuthenticationMethods) |
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntaxpublic Task<bool> LoginAsync(
string accountName,
string password,
AuthenticationMethods authMethods
)
Public Function LoginAsync (
accountName As String,
password As String,
authMethods As AuthenticationMethods
) As Task(Of Boolean)
Parameters
- accountName
- Type: SystemString
The user account name on the server. - password
- Type: SystemString
The password of the user account on the server. - authMethods
- Type: MailBeeAuthenticationMethods
A set of authentication methods which can be used when logging in a mailbox.
Return Value
Type:
TaskBooleanA task that represents the asynchronous operation. The value of
TResult parameter is
true if the method succeeds; otherwise,
false.
Exceptions
See Also