## IGraphClient.CreateCategory method

Creates an [`OutlookCategory`](../../outlookcategory/) object in the user's master list of categories.

```csharp
public OutlookCategory CreateCategory(string displayName, CategoryPreset preset)
```

| Parameter | Type | Description |
| --- | --- | --- |
| displayName | String | A unique name that identifies a category in the user's mailbox. |
| preset | CategoryPreset | pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors |

### Return Value

Category by which a user can group Outlook items such as messages and events

### See Also

* class [OutlookCategory](../../outlookcategory/)
* enum [CategoryPreset](../../categorypreset/)
* interface [IGraphClient](../)
* namespace [Aspose.Email.Clients.Graph](../../igraphclient/)
* assembly [Aspose.Email](../../../)


