---
title: "Aspose::Email::Clients::Exchange::RulePredicates::set_ContainsRecipientStrings method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.exchange/rulepredicates/set_containsrecipientstrings/"
product: "Aspose.Email for C++"
description: "Sets the strings that appear in either the ToRecipients or CcRecipients properties of incoming messages in order for the condition or exception to apply."
---


## set_ContainsRecipientStrings {#set_containsrecipientstrings}

Sets the strings that appear in either the ToRecipients or CcRecipients properties of incoming messages in order for the condition or exception to apply.

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

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

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

