MapiPropertyCollection

MapiPropertyCollection

Overview

MapiPropertyCollection is a class in Aspose.Email FOSS for Python.

MapiPropertyCollection.set adds or replaces a MapiProperty in the collection and returns it.

Methods

SignatureDescription
__init__()
set(property: MapiProperty)MapiPropertyAdds or replaces a MapiProperty in the collection and returns it
add(property_id: int | CommonMessagePropertyId | PropertyId, property_type: int | PropertyTypeCode, value: Any, flags: int, named: MapiNamedProperty | None)MapiPropertyCreates a new MapiProperty with given id, type, value, flags, optional named property and returns it
get(property_id: int | CommonMessagePropertyId | PropertyId, property_type: int | None)MapiProperty | NoneRetrieves a MapiProperty by id and optional type, or None if absent
remove(property_id: int | CommonMessagePropertyId | PropertyId, property_type: int | None)Deletes the property matching id and optional type from the collection
iter_properties()Iterator[MapiProperty]Returns an iterator over all MapiProperty objects in the collection

See Also