---
title: "Aspose::Email::Mapi::MapiRecipient::SetOwner method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapirecipient/setowner/"
product: "Aspose.Email for C++"
description: "Sets the owner."
---


## SetOwner {#setowner}

Sets the owner.

**Returns:** void Aspose::Email::Mapi::

```cpp
SetOwner(System::SharedPtr < MapiMessageItemBase > owner)
```

| Parameter | Description |
| --- | --- |
| owner | The owner message. |

