PropertyTypeCode

PropertyTypeCode

Overview

PropertyTypeCode is an enumeration of MAPI property type codes (the low 16 bits of a MAPI property tag). Each value identifies the data type of a property’s stored value: integer, floating-point, boolean, string, binary, time, GUID, or a multi-value variant of those types. Use these constants with MapiProperty.PropertyType and MapiPropertyCollection to decode or construct MAPI property streams in .msg files.

Base type: ushort.

Members

NameDescription
PtypInteger1616-bit signed integer property (PT_I2, type code 0x0002).
PtypInteger3232-bit signed integer property (PT_LONG, type code 0x0003).
PtypFloating3232-bit IEEE 754 floating-point value (PT_R4, type code 0x0004).
PtypFloating6464-bit IEEE 754 double-precision value (PT_DOUBLE, type code 0x0005).
PtypCurrency64-bit signed integer scaled by 10,000 representing a currency amount (PT_CURRENCY, type code 0x0006).
PtypFloatingTimeOLE floating-point date-time value as a double (PT_APPTIME, type code 0x0007).
PtypErrorCode32-bit HRESULT error code (PT_ERROR, type code 0x000A).
PtypBoolean16-bit Boolean: 0 = false, non-zero = true (PT_BOOLEAN, type code 0x000B).
PtypObjectEmbedded IStream or IStorage object (PT_OBJECT, type code 0x000D).
PtypInteger6464-bit signed integer (PT_I8, type code 0x0014).
PtypString8Null-terminated 8-bit ANSI/MBCS string (PT_STRING8, type code 0x001E).
PtypStringNull-terminated UTF-16LE Unicode string (PT_UNICODE, type code 0x001F).
PtypTime64-bit FILETIME UTC date-time value (PT_SYSTIME, type code 0x0040).
PtypGuid128-bit GUID / UUID value (PT_CLSID, type code 0x0048).
PtypBinaryVariable-length byte array with a 32-bit length prefix (PT_BINARY, type code 0x0102).
PtypMultipleInteger16Multi-value array of 16-bit integers (PT_MV_I2, type code 0x1002).
PtypMultipleInteger32Multi-value array of 32-bit integers (PT_MV_LONG, type code 0x1003).
PtypMultipleFloating32Multi-value array of 32-bit floats (PT_MV_R4, type code 0x1004).
PtypMultipleFloating64Multi-value array of 64-bit doubles (PT_MV_DOUBLE, type code 0x1005).
PtypMultipleCurrencyMulti-value array of currency values (PT_MV_CURRENCY, type code 0x1006).
PtypMultipleFloatingTimeMulti-value array of OLE date-time values (PT_MV_APPTIME, type code 0x1007).
PtypMultipleInteger64Multi-value array of 64-bit integers (PT_MV_I8, type code 0x1014).
PtypMultipleString8Multi-value array of ANSI strings (PT_MV_STRING8, type code 0x101E).
PtypMultipleStringMulti-value array of Unicode strings (PT_MV_UNICODE, type code 0x101F).
PtypMultipleTimeMulti-value array of FILETIME values (PT_MV_SYSTIME, type code 0x1040).
PtypMultipleGuidMulti-value array of GUIDs (PT_MV_CLSID, type code 0x1048).
PtypMultipleBinaryMulti-value array of binary blobs (PT_MV_BINARY, type code 0x1102).

See Also