Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ews.LoginAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9147)

LoginAsync(EwsAuthentication, Object)

Begins asynchronous Login operation. Authenticates the user to the Exchange server using the specified authentication method that does not require credentials (NTLM, Kerberos or Negotiate).

Declaration
public Task LoginAsync(EwsAuthentication method, object state = null)
Parameters
Type Name Description
EwsAuthentication method

Authentication method.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task

LoginAsync(String, EwsAuthentication, Object)

Begins asynchronous Login operation. Authenticates the user to the Exchange server using an OAuth access token.

Declaration
public Task LoginAsync(string token, EwsAuthentication method, object state = null)
Parameters
Type Name Description
String token

Access token.

EwsAuthentication method

Authentication method (only OAuth 2.0 is supported at the moment).

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task

LoginAsync(String, String, Object)

Begins asynchronous Login operation. Authenticates the user to the Exchange server.

Declaration
public Task LoginAsync(string userName, string password, object state = null)
Parameters
Type Name Description
String userName

User's login name.

String password

User's password.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
Remarks

This method tries to authenticate using the following methods, in this order of preference: NTLM, Kerberos, Negotiate, Basic.

LoginAsync(String, String, EwsAuthentication, Object)

Begins asynchronous Login operation. Authenticates the user to the Exchange server.

Declaration
public Task LoginAsync(string userName, string password, EwsAuthentication method, object state = null)
Parameters
Type Name Description
String userName

User's login name.

String password

User's password.

EwsAuthentication method

Authentication method.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
In This Article
  • LoginAsync(EwsAuthentication, Object)
  • LoginAsync(String, EwsAuthentication, Object)
  • LoginAsync(String, String, Object)
  • LoginAsync(String, String, EwsAuthentication, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies