---
title: "MapiMessageItemBase.SetProperty"
url: "https://reference.aspose.com/email/net/aspose.email.mapi/mapimessageitembase/setproperty/"
product: "Aspose.Email for .NET API Reference"
description: "MapiMessageItemBase method. Sets the value of a MAPI property of the item"
---

## MapiMessageItemBase.SetProperty method

Sets the value of a MAPI property of the item.

```csharp
public override void SetProperty(PropertyDescriptor pd, object value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pd | PropertyDescriptor | The descriptor of the property, for example one from [`KnownPropertyList`](../../knownpropertylist/). |
| value | Object | The value, of a .NET type that matches the data type of the property. |

### See Also

* class [PropertyDescriptor](../../propertydescriptor/)
* class [MapiMessageItemBase](../)
* namespace [Aspose.Email.Mapi](../../mapimessageitembase/)
* assembly [Aspose.Email](../../../)


