Class MapiNamedProperty

MapiNamedProperty class

A named property: a MAPI property identified by a property set GUID and a name or numeric ID rather than by a fixed tag.

public sealed class MapiNamedProperty : MapiProperty

Constructors

NameDescription
MapiNamedProperty()Initializes a new instance of the MapiNamedProperty class.
MapiNamedProperty(INamedPropertyTagProvider, PidLidPropertyDescriptor, object)Initializes a new instance of the MapiNamedProperty class from a descriptor of a property with a numeric ID.
MapiNamedProperty(INamedPropertyTagProvider, PidNamePropertyDescriptor, object)Initializes a new instance of the MapiNamedProperty class from a descriptor of a property with a string name.
MapiNamedProperty(long, long, Guid, byte[])Initializes a new instance of the MapiNamedProperty class for a property identified by a numeric ID.
MapiNamedProperty(long, string, Guid, byte[])Initializes a new instance of the MapiNamedProperty class for a property identified by a string name.

Properties

NameDescription
virtual Data { get; }Gets the value of the property as bytes.
virtual DataType { get; }Gets the data type of the property: the low-order 16 bits of Tag.
Descriptor { get; }Gets the descriptor of the property.
Guid { get; }Gets the GUID of the property set the property belongs to.
virtual Identifier { get; }Gets the property ID: the high-order 16 bits of Tag.
IsNamed { get; }Gets a value indicating whether the property is a named property.
virtual IsSigned { get; set; }Gets or sets a value indicating whether the value is a signed number.
Kind { get; }Gets how the property is identified within its property set: 0 by a numeric ID, 1 by a string name.
MVEntries { get; }Gets the values of a multi-valued property.
virtual Name { get; }Gets the name of the property.
NameId { get; }Gets the name of the property, or its numeric ID in hexadecimal when Kind is 0.
Oom { get; }Gets the name of the property in the Outlook Object Model, if it has one; otherwise an empty string.
virtual PropertyTagName { get; }Gets the name of the tag of the property, such as PR_SUBJECT, if it is known.
virtual Tag { get; }Gets the tag of the property: the property ID in the high-order 16 bits and the data type in the low-order 16 bits.

Methods

NameDescription
virtual GetBoolean()Gets the value as a Boolean.
virtual GetCurrency()Gets the value of a currency property.
virtual GetDateTime()Gets the value of a date and time (PT_SYSTIME) property.
virtual GetDouble()Gets the value as a 64-bit floating-point number.
virtual GetFloat()Gets the value as a 32-bit floating-point number.
virtual GetFloatingDate()Gets the value of a floating date (PT_APPTIME) property: a number of days since December 30, 1899.
virtual GetGuid()Gets the value as a GUID.
virtual GetInt32()Gets the value as a 32-bit integer.
virtual GetLong()Gets the value as a 64-bit integer.
virtual GetShort()Gets the value as a 16-bit integer.
virtual GetString()Gets the value as a string.
virtual GetString(int)Gets the value as a string, decoding an ANSI string with the specified code page.
GetValue()Gets the value as an object of the .NET type that matches the data type.
override ToString()Returns a string that represents the property.

Remarks

Inside a message a named property is stored under a tag that the message assigns. Read the identity of the property with Guid, Kind and NameId.

See Also