MapiProperty Class
Definition
Represents a single decoded MAPI property: a MapiPropertyTag paired with its CLR value.
public sealed class MapiProperty
- Inheritance
-
MapiProperty
- Inherited Members
- Extension Methods
Remarks
The value's CLR type follows the tag's MapiPropertyType: string for
Unicode and String8, short /
int / long for the integer codes, float / double for the
floating-point codes, decimal for Currency, bool for
Boolean, DateTimeOffset for
SystemTime, Guid for Guid, and
byte[] for Binary. A multi-valued property carries the corresponding array
type.
A null value is permitted - it represents a property whose payload is absent or, as for Object, not representable inline.
Constructors
MapiProperty(MapiPropertyTag, object?)
Initializes a new instance of the MapiProperty class.
public MapiProperty(MapiPropertyTag tag, object? value)
Parameters
tagMapiPropertyTagThe property tag.
valueobjectThe decoded value, or null when the payload is absent.
Properties
Tag
Gets the property tag.
public MapiPropertyTag Tag { get; }
Property Value
- MapiPropertyTag
The 32-bit tag identifying the property and its wire type.
Value
Gets the decoded value.
public object? Value { get; }
Property Value
Methods
ToString()
Returns a textual form of the property for diagnostics.
public override string ToString()
Returns
- string
The tag in its canonical hexadecimal form followed by the value, or
nullwhen absent.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |