Panoramica
MapiProperty rappresenta una singola voce di proprietà MAPI: una combinazione di un ID proprietà a 16 bit, un codice tipo proprietà a 16 bit, un valore e flag opzionali. Il PropertyTag combina l’ID proprietà e il tipo in un tag MAPI a 32 bit. Usa MapiPropertyCollection.Get per recuperare una proprietà per ID e tipo, oppure MapiMessage.SetProperty per impostarne una.
Costruttori
| Firma | Descrizione |
|---|
MapiProperty(propertyId: ushort, propertyType: ushort, value: object?, flags: uint) | Crea un nuovo MapiProperty con i parametri specificati. |
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|
PropertyId | ushort | Lettura | Identificatore di proprietà MAPI a 16 bit (i 16 bit più alti del tag della proprietà). |
PropertyType | ushort | Lettura | Codice di tipo di proprietà MAPI a 16 bit (i 16 bit più bassi del tag della proprietà). |
Value | object? | Lettura | Valore della proprietà decodificato; il tipo dipende da PropertyType (string, int, byte[], DateTime, ecc.). |
Flags | uint | Lettura | Maschera di bit dei flag di proprietà; controlla valori multipli, sola lettura e altre caratteristiche comportamentali. |
PropertyTag | uint | Lettura | Tag della proprietà MAPI a 32 bit combinato: i 16 bit più alti = PropertyId, i 16 bit più bassi = PropertyType. |
Vedi anche