Class PropertyDescriptor
Contents
[
Hide
]PropertyDescriptor class
The base class of property descriptors: the identity and data type of a MAPI property.
public abstract class PropertyDescriptor : IEquatable<PropertyDescriptor>
Properties
| Name | Description |
|---|---|
| CanonicalName { get; } | Gets the canonical name of the property, as in [MS-OXPROPS]. The prefix tells how the property is identified: PidLid by a numeric ID within a property set, PidName by a string name within a property set, PidTag by a fixed 16-bit ID. |
| DataType { get; } | Gets the data type of the property value. |
| MultipleValuesDataType { get; } | Gets a value indicating whether the property is multi-valued. |
| Name { get; } | Gets the alternate name of the property, such as PR_SUBJECT, or the name of a named property. |
| static Use8BitStringAsUnicode { get; set; } | Gets or sets a value indicating whether String8 (ANSI) values are read as String (Unicode). The default is true. |
Methods
| Name | Description |
|---|---|
| static GetInstance(MapiProperty) | Gets the descriptor of a MAPI property. |
| static Parse(string) | Creates a descriptor from its string form, as returned by ToString, for example Tag:'PidTagSubject':0x37:String. |
| abstract Equals(PropertyDescriptor) | Determines whether the specified descriptor describes the same property. |
| static GetInstance(long) | Gets the descriptor of a tagged property by its tag. |
| static GetInstance(int, PropertyDataType) | Gets the descriptor of a tagged property by its ID and data type. |
| static GetInstance(long, PropertyDataType, Guid) | Gets the descriptor of a named property by its numeric ID (LID). |
| static GetInstance(string, PropertyDataType, Guid) | Gets the descriptor of a named property by its name. |
| operator == | Determines whether the specified objects are equal to each another. |
| operator != | Determines whether the specified objects are not equal to each another. |
Remarks
Use PidTagPropertyDescriptor for tagged properties, and PidLidPropertyDescriptor or PidNamePropertyDescriptor for named properties. Descriptors of the known properties are defined in KnownPropertyList.
See Also
- namespace Aspose.Email.Mapi
- assembly Aspose.Email