## MessageObjectProperty class

Represents a property on a [`MessageObject`](../messageobject/).

```csharp
public sealed class MessageObjectProperty
```

## Constructors

| Name | Description |
| --- | --- |
| [MessageObjectProperty](messageobjectproperty/#constructor_1)(long, MapiPropertyFlags, object) | Initializes a new instance of the `MessageObjectProperty` class. |
| [MessageObjectProperty](messageobjectproperty/#constructor)(int, MapiType, MapiPropertyFlags, object) | Initializes a new instance of the `MessageObjectProperty` class. |

## Properties

| Name | Description |
| --- | --- |
| [Atomic](../../aspose.email.mapi.msg/messageobjectproperty/atomic/) { get; } | Gets a value indicating whether this `MessageObjectProperty` is atomic. |
| [Flags](../../aspose.email.mapi.msg/messageobjectproperty/flags/) { get; } | Gets the flags set on a property. |
| [Guid](../../aspose.email.mapi.msg/messageobjectproperty/guid/) { get; set; } | Gets or sets the GUID for the named property. |
| [Id](../../aspose.email.mapi.msg/messageobjectproperty/id/) { get; } | Gets the id of the property. |
| [Name](../../aspose.email.mapi.msg/messageobjectproperty/name/) { get; set; } | Gets or sets the name of the property if it's named. |
| [Named](../../aspose.email.mapi.msg/messageobjectproperty/named/) { get; } | Gets a value indicating whether this `MessageObjectProperty` is a named property. |
| [NameId](../../aspose.email.mapi.msg/messageobjectproperty/nameid/) { get; set; } | Gets or sets the name id of the property if it's named. |
| [PropertyKind](../../aspose.email.mapi.msg/messageobjectproperty/propertykind/) { get; set; } | Gets or sets the kind of the property if it's named. |
| [PropertyTag](../../aspose.email.mapi.msg/messageobjectproperty/propertytag/) { get; } | Gets the property tag, a combined value which contains [`Id`](./id/) and [`PropertyType`](./propertytype/) |
| [PropertyType](../../aspose.email.mapi.msg/messageobjectproperty/propertytype/) { get; } | Gets the type of the property. |
| [Value](../../aspose.email.mapi.msg/messageobjectproperty/value/) { get; set; } | Gets or sets the value of the property. |

## Methods

| Name | Description |
| --- | --- |
| [ToDateTime](../../aspose.email.mapi.msg/messageobjectproperty/todatetime/)() | Converts the value of the property to DateTime. |
| [ToGuid](../../aspose.email.mapi.msg/messageobjectproperty/toguid/)() | Converts the value of the property to [`Guid`](./guid/). |
| [ToInt](../../aspose.email.mapi.msg/messageobjectproperty/toint/)() | Converts the value of the property to integer. |
| [ToList&lt;T&gt;](../../aspose.email.mapi.msg/messageobjectproperty/tolist/)() | Converts the value of the property to a list of values. |
| [ToStringRepresentation](../../aspose.email.mapi.msg/messageobjectproperty/tostringrepresentation/)() | Converts the value of the property to string. |

### See Also

* namespace [Aspose.Email.Mapi.Msg](../../aspose.email.mapi.msg/)
* assembly [Aspose.Email](../../)


