MapiMessage.AddCustomProperty

AddCustomProperty(MapiProperty, string)

Adds the custom property.

public void AddCustomProperty(MapiProperty property, string stringNameId)
ParameterTypeDescription
propertyMapiPropertyThe propertyMapiProperty.
stringNameIdStringThe name of propertyString.

Exceptions

exceptioncondition
ArgumentNullExceptionIf property is null.
ArgumentExceptionIf property data is null.
NotSupportedExceptionIf data type is not supported yet.

See Also


AddCustomProperty(MapiPropertyType, byte[], string)

Adds the custom property.

public void AddCustomProperty(MapiPropertyType type, byte[] data, string stringNameId)
ParameterTypeDescription
typeMapiPropertyTypeType of MapiPropertyMapiPropertyType
dataByte[]MapiProperty data.Byte
stringNameIdStringThe name of propertyString.

Exceptions

exceptioncondition
ArgumentExceptionIf property data is null.
NotSupportedExceptionIf data type is not supported yet.

See Also