## IGraphClient.ListRules method

Get all the messageRule objects defined for the user's Inbox. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read

```csharp
public List<InboxRule> ListRules(ODataQueryBuilder queryBuilder = null)
```

| Parameter | Type | Description |
| --- | --- | --- |
| queryBuilder | ODataQueryBuilder | Optional OData query builder for filtering rules. |

### Return Value

List of inbox rules

### See Also

* class [InboxRule](../../../aspose.email.clients.exchange/inboxrule/)
* class [ODataQueryBuilder](../../odataquerybuilder/)
* interface [IGraphClient](../)
* namespace [Aspose.Email.Clients.Graph](../../igraphclient/)
* assembly [Aspose.Email](../../../)


