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

Ews.ConnectAsync Method

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

ConnectAsync(String, Object)

Connects to an Exchange Server using HTTPS.

Declaration
public Task ConnectAsync(string serverName, object state = null)
Parameters
Type Name Description
String serverName

Name of the Exchange server.

Object state

An object containing state information for this request.

Returns
Type Description
Task

ConnectAsync(String, SslMode, Object)

Connects to an Exchange server using the specified TLS/SSL mode (None for HTTP, Implicit for HTTPS).

Declaration
public Task ConnectAsync(string serverName, SslMode mode, object state = null)
Parameters
Type Name Description
String serverName

Name of the Exchange server.

SslMode mode

TLS/SSL mode to use. Valid values are None (HTTP) and Implicit (HTTPS).

Object state

An object containing state information for this request.

Returns
Type Description
Task

ConnectAsync(String, Int32, SslMode, Object)

Connects to an Exchange server using specified port and TLS/SSL mode.

Declaration
public Task ConnectAsync(string serverName, int serverPort, SslMode mode, object state = null)
Parameters
Type Name Description
String serverName

Name of the Exchange server.

Int32 serverPort

The server port (e.g. 80 or 443).

SslMode mode

TLS/SSL mode to use. Valid values are None (HTTP) and Implicit (HTTPS).

Object state

An object containing state information for this request.

Returns
Type Description
Task
In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies