Class MapiProperty
Contents
[
Hide
]MapiProperty class
A MAPI property: a value identified by a tag that holds the property ID and the data type.
public class MapiProperty
Constructors
| Name | Description |
|---|---|
| MapiProperty(long) | Initializes a new instance of the MapiProperty class without a value. |
| MapiProperty(long, byte[]) | Initializes a new instance of the MapiProperty class with a binary value. |
| MapiProperty(long, IList<object>) | Initializes a new instance of the MapiProperty class with several values, for a multi-valued (PT_MV_*) property. |
| MapiProperty(PidLidPropertyDescriptor, object) | Initializes a new instance of the MapiProperty class from a property descriptor. |
| MapiProperty(PidTagPropertyDescriptor, object) | Initializes a new instance of the MapiProperty class from a property descriptor. |
| MapiProperty(long, long, byte[]) | Initializes a new instance of the MapiProperty class with a binary value and a signed flag. |
| MapiProperty(string, long, long, byte[]) | Initializes a new instance of the MapiProperty class with a name, a binary value and a signed flag. |
Properties
| Name | Description |
|---|---|
| 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. |
| 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. |
| MVEntries { get; } | Gets the values of a multi-valued property. |
| virtual Name { get; } | Gets the name of the property. |
| 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
| Name | Description |
|---|---|
| static CreateMapiPropertyFromBytes(long, byte[]) | Creates a property with a binary value. |
| static CreateMapiPropertyFromDateTime(long, DateTime) | Creates a property with a date and time value. |
| static CreateMapiPropertyFromLong(long, long) | Creates a property with an integer value. |
| static CreateMapiPropertyFromLong(long, long, long) | Creates a property with an integer value and a signed flag. |
| 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
The value is kept as bytes in Data. Read it with the typed getters, such as GetString, GetInt32 or GetDateTime, or with GetValue, which returns an object of the matching .NET type.
See Also
- namespace Aspose.Email.Mapi
- assembly Aspose.Email