MapiProperty Class
A MAPI property of an object of an Outlook data file. The value is read when it is first accessed.
public sealed class MapiPropertyProperties
| Name | Description |
|---|---|
| Id | Gets the identifier of the property. |
| NamedProperty | Gets the name of the property when its identifier is in the range of the named properties (0x8000 and above) and the file maps it. |
| Tag | Gets the tag of the property. |
| Type | Gets the type of the property. |
| Value | Gets the value of the property, as the .NET type documented by MapiPropertyType, or the raw bytes for the types that have no .NET equivalent. |
NamedProperty
MapiProperty.csGets the name of the property when its identifier is in the range of the named properties (0x8000 and above) and the file maps it.
public MapiNamedProperty? NamedProperty { get; }Property value
Type
MapiProperty.csValue
MapiProperty.csGets the value of the property, as the .NET type documented by MapiPropertyType, or the raw bytes for the types that have no .NET equivalent.
public object? Value { get; }Property value
Exceptions
InvalidEmailDataException- The value is malformed.
EmailResourceLimitException- The value is larger than
PstReadOptions.MaxPropertySize.
Methods
| Name | Description |
|---|---|
| GetBytes() | Returns the bytes of the value, as stored in the file (UTF-16 for MapiPropertyType.Unicode). |
| GetSize() | Gets the size of the value in bytes, as stored in the file. |
| OpenRead() | Opens a stream on the bytes of the value. Large values are read block by block. |
| ToString() | Returns the tag and the name of the property. |
GetBytes()
MapiProperty.csReturns the bytes of the value, as stored in the file (UTF-16 for MapiPropertyType.Unicode).
public byte[] GetBytes()Returns
byte[] The bytes of the value.
Exceptions
EmailResourceLimitException- The value is larger than
PstReadOptions.MaxPropertySize.