GraphClient.ConnectAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 8.0.9673)
ConnectAsync()
Connects to the Microsoft 365 or Exchange Online server at https://graph.microsoft.com.
Declaration
public Task ConnectAsync()
Returns
| Type | Description |
|---|---|
| Task |
Examples
See Connect code example on product pages.
ConnectAsync(String, Int32)
Connects to a Graph server using specified port via HTTPS.
Declaration
public Task ConnectAsync(string serverName = "graph.microsoft.com", int serverPort = 443)
Parameters
| Type | Name | Description |
|---|---|---|
| String | serverName | Name of the server ('graph.microsoft.com'). |
| Int32 | serverPort | Port of the server (443). |
Returns
| Type | Description |
|---|---|
| Task |
Examples
See Connect code example on product pages.