AddCustomProperty(MapiProperty, string)
Adds a custom named property with a string name.
public void AddCustomProperty(MapiProperty property, string stringNameId)
| Parameter | Type | Description |
|---|
| property | MapiProperty | The property, with its type and value. |
| stringNameId | String | The name of the property. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | property is null. |
| ArgumentException | The data of the property is null. |
| NotSupportedException | The data type of the property is not supported. |
See Also
AddCustomProperty(MapiPropertyType, byte[], string)
Adds a custom named property with a string name.
public void AddCustomProperty(MapiPropertyType type, byte[] data, string stringNameId)
| Parameter | Type | Description |
|---|
| type | MapiPropertyType | The data type of the property. |
| data | Byte[] | The value of the property, as bytes. |
| stringNameId | String | The name of the property. |
Exceptions
| exception | condition |
|---|
| ArgumentException | data is null. |
| NotSupportedException | type is not supported. |
See Also