
## CreateCategory {#createcategory}

Creates an OutlookCategory object in the user's master list of categories.

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

```cpp
CreateCategory(System::String displayName, CategoryPreset preset)
```

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

