Pop3LoginAsync Method (String, String, AuthenticationMethods, AuthenticationOptions, SaslMethod) |
Namespace: MailBee.Pop3MailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax public Task<bool> LoginAsync(
string accountName,
string password,
AuthenticationMethods authMethods,
AuthenticationOptions authOptions,
SaslMethod authUserDefined
)
Public Function LoginAsync (
accountName As String,
password As String,
authMethods As AuthenticationMethods,
authOptions As AuthenticationOptions,
authUserDefined As SaslMethod
) 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. - authOptions
- Type: MailBeeAuthenticationOptions
Specifies the options which affect login process. - authUserDefined
- Type: MailBeeSaslMethod
A reference to the instance of user defined authentication method,
or a null reference (Nothing in Visual Basic) if user defined authentication is not used.
Return Value
Type:
TaskBooleanA task that represents the asynchronous operation.
The value of
TResult parameter is
true if a login attempt succeeded; otherwise,
false.
Exceptions See Also