Ews.ConnectAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9083)
ConnectAsync(String, Object)
Begins asynchronous Connect operation. 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 optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
ConnectAsync(String, SslMode, Object)
Begins asynchronous Connect operation. 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 optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
ConnectAsync(String, Int32, SslMode, Object)
Begins asynchronous Connect operation. 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 optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |