## GraphClient class

Provides access to MS Graph by using REST API.

```csharp
public abstract class GraphClient : IDisposable
```

## Properties

| Name | Description |
| --- | --- |
| virtual [EndPoint](../../aspose.email.clients.graph/graphclient/endpoint/) { get; set; } | Gets or sets Microsoft Graph REST API endpoint. If not specified, the default is "https://graph.microsoft.com". |
| virtual [MultipleServicesTokenProvider](../../aspose.email.clients.graph/graphclient/multipleservicestokenprovider/) { get; set; } | Gets or sets an object allows to retrieve OAuth access token. |
| virtual [Proxy](../../aspose.email.clients.graph/graphclient/proxy/) { get; set; } | Gets or sets data to proxy access to Exchange server. |
| virtual [Resource](../../aspose.email.clients.graph/graphclient/resource/) { get; set; } | Gets or sets resource type. |
| virtual [ResourceId](../../aspose.email.clients.graph/graphclient/resourceid/) { get; set; } | Gets or sets resource id. For instance for users it may be user principal name (UPN) or user id |
| virtual [RetryPolicy](../../aspose.email.clients.graph/graphclient/retrypolicy/) { get; set; } | Gets or sets the retry policy used for Microsoft Graph 429 and 503 responses. |
| virtual [TenantId](../../aspose.email.clients.graph/graphclient/tenantid/) { get; set; } | Gets or sets tenant identifier |
| virtual [Timeout](../../aspose.email.clients.graph/graphclient/timeout/) { get; set; } | Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds). |
| virtual [TokenProvider](../../aspose.email.clients.graph/graphclient/tokenprovider/) { get; set; } | Gets or sets an object allows to retrieve OAuth access token. |

## Methods

| Name | Description |
| --- | --- |
| virtual [Dispose](../../aspose.email.clients.graph/graphclient/dispose/)() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| static [GetClient](../../aspose.email.clients.graph/graphclient/getclient/#getclient)(IMultipleServicesTokenProvider, string) | Initializes a new instance of the `GraphClient` based class |
| static [GetClient](../../aspose.email.clients.graph/graphclient/getclient/#getclient_1)(ITokenProvider, string) | Initializes a new instance of the `GraphClient` based class |
| static [GetClientAsync](../../aspose.email.clients.graph/graphclient/getclientasync/#getclientasync)(IMultipleServicesTokenProvider, string) | Initializes a new instance of the `GraphClient` based class |
| static [GetClientAsync](../../aspose.email.clients.graph/graphclient/getclientasync/#getclientasync_1)(ITokenProvider, string) | Initializes a new instance of the `GraphClient` based class |

### See Also

* namespace [Aspose.Email.Clients.Graph](../../aspose.email.clients.graph/)
* assembly [Aspose.Email](../../)


