Class MapiNamedPropertyMappingStorage
Contents
[
Hide
]MapiNamedPropertyMappingStorage class
The mapping between the named properties of a message and the tags they are stored under.
public sealed class MapiNamedPropertyMappingStorage : MapiPropertyContainer
Constructors
| Name | Description |
|---|---|
| MapiNamedPropertyMappingStorage() | Initializes a new instance of the MapiNamedPropertyMappingStorage class. |
Properties
| Name | Description |
|---|---|
| virtual CodePage { get; } | Gets the code page of the ANSI strings of the object. |
| Content { get; } | Gets the content of the storage. |
| Name { get; } | Gets the name of the storage. |
| virtual Properties { get; } | Gets all properties of the object. |
Methods
| Name | Description |
|---|---|
| AddNamedPropertyMapping(MapiProperty, long, Guid) | Registers a property as a named property with a numeric ID. |
| AddNamedPropertyMapping(MapiProperty, string, Guid) | Registers a property as a named property with a string name. |
| GetNextAvailablePropertyId(MapiPropertyType) | Gets a free tag in the named property range for a new property of the specified type. |
| virtual GetProperty(PropertyDescriptor) | Gets a MAPI property by its descriptor. |
| GetPropertyBoolean(long) | Gets the value of a property as a Boolean. |
| GetPropertyBytes(long) | Gets the value of a property as bytes. |
| GetPropertyDateTime(long) | Gets the value of a property as a date and time. |
| GetPropertyInt32(long) | Gets the value of a property as a 32-bit integer. |
| GetPropertyLong(long) | Gets the value of a property as a 64-bit integer. |
| GetPropertyShort(long) | Gets the value of a property as a 16-bit integer. |
| GetPropertyString(long) | Gets the value of a property as a string. |
| GetPropertyString(long, int) | Gets the value of a property as a string, decoding an ANSI string with the specified code page. |
| IsStoreUnicodeOk() | Determines whether the string properties of the object are stored in Unicode. |
| virtual SetProperty(MapiProperty) | Adds the property, or replaces the property with the same tag. |
| virtual SetProperty(PropertyDescriptor, object) | Sets the value of a MAPI property, creating the property if needed. |
| TryGetPropertyData(long) | Gets the value of a property as bytes. |
| TryGetPropertyDateTime(long, ref DateTime) | Gets the value of a property as a date and time, if the property exists. |
| TryGetPropertyInt32(long, ref int) | Gets the value of a property as a 32-bit integer, if the property exists. |
| TryGetPropertyLong(long, ref long) | Gets the value of a property as a 64-bit integer, if the property exists. |
| TryGetPropertyString(long) | Gets the value of a property as a string. |
| TryGetPropertyString(long, int) | Gets the value of a property as a string, decoding an ANSI string with the specified code page. |
| TryGetPropertyString(long, ref string) | Gets the value of a property as a string, if the property exists. |
| TryGetPropertyString(long, ref string, int) | Gets the value of a property as a string, if the property exists, decoding an ANSI string with the specified code page. |
Remarks
Returned by NamedPropertyMapping. To add a named property by hand, get a free ID with GetNextAvailablePropertyId, set the property under that tag and register it with AddNamedPropertyMapping. Setting a property through a PidLidPropertyDescriptor or PidNamePropertyDescriptor does all of this for you.
See Also
- class MapiPropertyContainer
- namespace Aspose.Email.Mapi
- assembly Aspose.Email