## IGraphClient.CreateRule method

Create a message rule by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. 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.ReadWrite Delegated (personal Microsoft account) MailboxSettings.ReadWrite Application MailboxSettings.ReadWrite

```csharp
public InboxRule CreateRule(InboxRule rule)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rule | InboxRule | Rule to be created in inbox |

### Return Value

Created rule

### See Also

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


