Table of Contents

MapiProperty Class

Definition

Namespace
Bodu.Formats.Outlook
Assembly
Bodu.Formats.Outlook.dll
Package
Bodu.Formats.Outlook 0.7.1
Source
MapiProperty.cs

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

tag MapiPropertyTag

The property tag.

value object

The 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

object

The CLR value described in the type remarks, or null when the payload is absent.

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 null when absent.

Applies to

ProductVersions
.NET8, 10