MapiAttachment.SetProperty

SetProperty(MapiProperty)

Adds the property to the attachment, or replaces the property with the same tag.

public override void SetProperty(MapiProperty value)
ParameterTypeDescription
valueMapiPropertyThe property to set.

Exceptions

exceptioncondition
ArgumentNullExceptionvalue is null.
ArgumentExceptionThe data of the property is null.
InvalidOperationExceptionThe data type of the property is not supported.

See Also


SetProperty(PropertyDescriptor, object)

Sets the value of a MAPI property of the attachment.

public override void SetProperty(PropertyDescriptor pd, object value)
ParameterTypeDescription
pdPropertyDescriptorThe descriptor of the property, for example one from KnownPropertyList.
valueObjectThe value, of a .NET type that matches the data type of the property.

See Also