MapiAttachment.SetProperty
Contents
[
Hide
]SetProperty(MapiProperty)
Adds the property to the attachment, or replaces the property with the same tag.
public override void SetProperty(MapiProperty value)
| Parameter | Type | Description |
|---|---|---|
| value | MapiProperty | The property to set. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | value is null. |
| ArgumentException | The data of the property is null. |
| InvalidOperationException | The data type of the property is not supported. |
See Also
- class MapiProperty
- class MapiAttachment
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
SetProperty(PropertyDescriptor, object)
Sets the value of a MAPI property of the attachment.
public override void SetProperty(PropertyDescriptor pd, object value)
| Parameter | Type | Description |
|---|---|---|
| pd | PropertyDescriptor | The descriptor of the property, for example one from KnownPropertyList. |
| value | Object | The value, of a .NET type that matches the data type of the property. |
See Also
- class PropertyDescriptor
- class MapiAttachment
- namespace Aspose.Email.Mapi
- assembly Aspose.Email