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
| Signature | Description |
|---|
MapiProperty(propertyId: ushort, propertyType: ushort, value: object?, flags: uint) | Creates a new MapiProperty with the specified parameters. |
Properties
| Name | Type | Access | Description |
|---|
PropertyId | ushort | Read | 16-bit MAPI property identifier (the high 16 bits of the property tag). |
PropertyType | ushort | Read | 16-bit MAPI property type code (the low 16 bits of the property tag). |
Value | object? | Read | Decoded property value; type depends on PropertyType (string, int, byte[], DateTime, etc.). |
Flags | uint | Read | Property flags bitmask; controls multi-value, read-only, and other behavioral attributes. |
PropertyTag | uint | Read | Combined 32-bit MAPI property tag: high 16 bits = PropertyId, low 16 bits = PropertyType. |
See Also