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


## get_Categories {#get_categories}

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

**Returns:** System::SharedPtr <System::Collections::Specialized::StringCollection> Aspose::Email::Clients::Exchange::

```cpp
get_Categories()
```

