---
title: "Aspose::Email::PersonalInfo::AssociatedPersonsList::Contains method"
url: "https://reference.aspose.com/email/cpp/aspose.email.personalinfo/associatedpersonslist/contains/"
product: "Aspose.Email for C++"
description: "Determines whether the list contains a specific value."
---


## Contains {#contains}

Determines whether the list contains a specific value.

**Returns:** true if the object is found in the list; otherwise, false.

```cpp
Contains(const System::SharedPtr < AssociatedPerson > & value)
```

| Parameter | Description |
| --- | --- |
| value | The object to locate in the list. |

