Class MapiObjectProperty

MapiObjectProperty class

An object embedded in an attachment, such as an attached Outlook message or an OLE document.

public class MapiObjectProperty : MapiProperty

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.
DocumentName { get; }Gets the name of the embedded document.
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.
IsOutlookMessage { get; }Gets a value indicating whether the object is an Outlook message.
virtual IsSigned { get; set; }Gets or sets a value indicating whether the value is a signed number.
MVEntries { get; }Gets the values of a multi-valued property.
virtual Name { get; }Gets the name of the property.
OleDocumentFormat { get; }Gets the format of the embedded OLE document, such as a Word document or an Excel worksheet.
Properties { get; }Gets the MAPI properties of the embedded object.
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.
ToMapiMessage()Gets the embedded Outlook message.
override ToString()Returns a string that represents the property.

Remarks

Returned by ObjectData. For an attached message IsOutlookMessage is true and ToMapiMessage returns it.

See Also