MapiProperty

Overview

MapiProperty represents a single MAPI property entry: a combination of a 16-bit property ID, a 16-bit property type code, a value, and optional flags. The PropertyTag combines the property ID and type into a 32-bit MAPI tag. Use MapiPropertyCollection.Get to retrieve a property by ID and type, or MapiMessage.SetProperty to set one.

Constructors

SignatureDescription
MapiProperty(propertyId: ushort, propertyType: ushort, value: object?, flags: uint)Creates a new MapiProperty with the specified parameters.

Properties

NameTypeAccessDescription
PropertyIdushortRead16-bit MAPI property identifier (the high 16 bits of the property tag).
PropertyTypeushortRead16-bit MAPI property type code (the low 16 bits of the property tag).
Valueobject?ReadDecoded property value; type depends on PropertyType (string, int, byte[], DateTime, etc.).
FlagsuintReadProperty flags bitmask; controls multi-value, read-only, and other behavioral attributes.
PropertyTaguintReadCombined 32-bit MAPI property tag: high 16 bits = PropertyId, low 16 bits = PropertyType.

See Also