MapiMessage.AddCustomProperty

AddCustomProperty(MapiProperty, string)

Adds a custom named property with a string name.

public void AddCustomProperty(MapiProperty property, string stringNameId)
ParameterTypeDescription
propertyMapiPropertyThe property, with its type and value.
stringNameIdStringThe name of the property.

Exceptions

exceptioncondition
ArgumentNullExceptionproperty is null.
ArgumentExceptionThe data of the property is null.
NotSupportedExceptionThe 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)
ParameterTypeDescription
typeMapiPropertyTypeThe data type of the property.
dataByte[]The value of the property, as bytes.
stringNameIdStringThe name of the property.

Exceptions

exceptioncondition
ArgumentExceptiondata is null.
NotSupportedExceptiontype is not supported.

See Also