
## ToBytes (1 of 4) {#tobytes_1}

Converts value to binary data

**Returns:** static System::ArrayPtr<uint8_t> Aspose::Email::Mapi::

```cpp
ToBytes(System::SharedPtr < PropertyDescriptor > pd, System::SharedPtr < System::Object > value)
```

| Parameter | Description |
| --- | --- |
| pd | The property descriptor. |
| value | The property data. |

---

## ToBytes (2 of 4) {#tobytes_2}

Converts value to binary data

**Returns:** static System::ArrayPtr<uint8_t> Aspose::Email::Mapi::

```cpp
ToBytes(System::SharedPtr < PropertyDescriptor > pd, System::SharedPtr < System::Object > value, System::SharedPtr < System::Globalization::DateTimeFormatInfo > dateTimeFormatInfo)
```

| Parameter | Description |
| --- | --- |
| pd | The property descriptor. |
| value | The property data. |
| dateTimeFormatInfo | DateTime format provider. |

---

## ToBytes (3 of 4) {#tobytes_3}

Converts value to binary data

**Returns:** System::ArrayPtr<uint8_t> Aspose::Email::Mapi::

```cpp
ToBytes(System::SharedPtr < System::Object > value)
```

| Parameter | Description |
| --- | --- |
| value | The property data. |

---

## ToBytes (4 of 4) {#tobytes_4}

Converts value to binary data

**Returns:** System::ArrayPtr<uint8_t> Aspose::Email::Mapi::

```cpp
ToBytes(System::SharedPtr < System::Object > value, System::SharedPtr < System::Globalization::DateTimeFormatInfo > dateTimeFormatInfo)
```

| Parameter | Description |
| --- | --- |
| value | The property data. |
| dateTimeFormatInfo | DateTime format provider. |

