---
title: "Aspose::Email::Clients::Exchange::RulePredicates::set_Categories method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.exchange/rulepredicates/set_categories/"
product: "Aspose.Email for C++"
description: "Sets the categories that an incoming message is labeled with in order for the condition or exception to apply."
---


## set_Categories {#set_categories}

Sets the categories that an incoming message is labeled with in order for the condition or exception to apply.

**Returns:** void Aspose::Email::Clients::Exchange::

```cpp
set_Categories(System::SharedPtr < System::Collections::Specialized::StringCollection > value)
```

| Parameter | Description |
| --- | --- |
| value |  |

