Represents the base class for MapiAttachment, MapiRecipient, MapiMessage. More...
Inherits Object.
Inherited by Aspose::Email::Mapi::MapiAttachment, Aspose::Email::Mapi::MapiMessageItemBase, Aspose::Email::Mapi::MapiNamedPropertyMappingStorage, Aspose::Email::Mapi::MapiPropertyStream, and Aspose::Email::Mapi::MapiRecipient.
Public Member Functions | |
virtual System::SharedPtr< MapiPropertyCollection > | get_Properties () |
Gets the collection of properties. More... | |
virtual int32_t | get_CodePage () |
Gets the code page. More... | |
System::SharedPtr< System::Text::Encoding > | get_CurrentEncoding () |
MapiPropertyContainer () | |
Initializes a new instance of the MapiPropertyContainer class. More... | |
MapiPropertyContainer (System::SharedPtr< MapiPropertyCollection > properties) | |
Initializes a new instance of the MapiPropertyContainer class. More... | |
virtual System::SharedPtr< MapiProperty > | GetProperty (System::SharedPtr< PropertyDescriptor > pd) |
Gets MAPI property by property descriptor. More... | |
virtual void | SetProperty (System::SharedPtr< PropertyDescriptor > pd, System::SharedPtr< System::Object > value) |
Sets MAPI property. More... | |
System::SharedPtr< MapiPropertyCollection > | GetSubStorages () |
System::String | TryGetPropertyString (int64_t tag, int32_t codepage) |
Try to get a property data as string with specified tag and code page. More... | |
System::ArrayPtr< uint8_t > | TryGetPropertyData (int64_t tag) |
Try to get the property data with specified tag key. More... | |
System::String | TryGetPropertyString (int64_t tag) |
Try to get a property data as string with specified tag. More... | |
System::String | GetPropertyString (int64_t tag, int32_t codepage) |
Gets the string value of the property specified by tag. More... | |
System::String | GetPropertyString (int64_t tag) |
Gets the string value of the property specified by tag. More... | |
System::ArrayPtr< uint8_t > | GetPropertyBytes (int64_t tag) |
Gets the string value of the property specified by tag. More... | |
virtual void | SetProperty (System::SharedPtr< MapiProperty > value) |
Sets the property. More... | |
System::Nullable< int32_t > | GetPropertyInt32 (int64_t tag) |
Gets the int32 value of the property specified by tag. More... | |
System::Nullable< int64_t > | GetPropertyLong (int64_t tag) |
Gets the value of the property specified by tag as Long (int64) type. More... | |
System::Nullable< int16_t > | GetPropertyShort (int64_t tag) |
Gets the value of the property specified by tag as Short type. More... | |
System::Nullable< bool > | GetPropertyBoolean (int64_t tag) |
Gets the value of the property specified by tag as Boolean type. More... | |
System::Nullable< System::DateTime > | GetPropertyDateTime (int64_t key) |
Gets the value of the property specified by tag as DateTime type. More... | |
bool | IsStoreUnicodeOk () |
Determines if string properties are Unicode encoded or not. More... | |
bool | TryGetPropertyString (int64_t tag, System::String &value, int32_t codepage) |
Gets the value of the specified property as String type. A return value indicates whether the operation succeeded. More... | |
bool | TryGetPropertyString (int64_t tag, System::String &value) |
Gets the value of the specified property as String type. A return value indicates whether the operation succeeded. More... | |
bool | TryGetPropertyDateTime (int64_t tag, System::DateTime &value) |
Gets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded. More... | |
bool | TryGetPropertyLong (int64_t tag, int64_t &value) |
Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded. More... | |
bool | TryGetPropertyInt32 (int64_t tag, int32_t &value) |
Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded. More... | |
virtual System::SharedPtr< Nodes::IMapiNode > | CreateMapiNode (System::String key) |
Creates the mapi node. More... | |
void | SetProperty (int64_t tag, System::ArrayPtr< uint8_t > data) |
Set the property. More... | |
void | SetProperty (int64_t tag, System::String value, OutlookMessageFormat format) |
Set the string property. More... | |
void | SetProperty (int64_t tag, System::String value, bool isUnicode) |
Set the string property. More... | |
void | SetProperty (int64_t tag, System::String value, System::SharedPtr< System::Text::Encoding > nonUnicodeEncoding) |
Set the string property. More... | |
void | SetProperty (int64_t tag, System::String value) |
Set the string property with CurrentEncoding More... | |
void | SetProperty (int64_t tag, System::DateTime dateTime) |
Set the datetime property. More... | |
void | SetPropertyLong (int64_t tag, int64_t value) |
Set the long property. More... | |
virtual bool | TryGetNamedProperty (System::SharedPtr< MapiProperty > mapiProperty, System::SharedPtr< MapiNamedProperty > &mapiNamedProperty) |
If MapiNamedPropertyMappingStorage is available, initializes and returns MapiNamedProperty, otherwise null. More... | |
Public Attributes | |
int32_t | codePage |
The code page. More... | |
System::SharedPtr< MapiPropertyCollection > | propertyDictionary |
The property dictionary. More... | |
Static Public Attributes | |
static const int32_t | DefaultCodePage |
Protected Member Functions | |
virtual | ~MapiPropertyContainer () |
Represents the base class for MapiAttachment, MapiRecipient, MapiMessage.
Aspose::Email::Mapi::MapiPropertyContainer::MapiPropertyContainer | ( | ) |
Initializes a new instance of the MapiPropertyContainer class.
Aspose::Email::Mapi::MapiPropertyContainer::MapiPropertyContainer | ( | System::SharedPtr< MapiPropertyCollection > | properties | ) |
Initializes a new instance of the MapiPropertyContainer class.
properties | The properties. |
|
protectedvirtual |
|
virtual |
Creates the mapi node.
key | The node key. |
Reimplemented in Aspose::Email::Mapi::MapiRecipient, and Aspose::Email::Mapi::MapiAttachment.
|
virtual |
Gets the code page.
The code page.
System::SharedPtr<System::Text::Encoding> Aspose::Email::Mapi::MapiPropertyContainer::get_CurrentEncoding | ( | ) |
|
virtual |
Gets the collection of properties.
The properties.
Reimplemented in Aspose::Email::Mapi::MapiPropertyStream.
|
virtual |
Gets MAPI property by property descriptor.
pd | Property descriptor for looked property |
Reimplemented in Aspose::Email::Mapi::MapiMessageItemBase, and Aspose::Email::Mapi::MapiAttachment.
System::Nullable<bool> Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyBoolean | ( | int64_t | tag | ) |
Gets the value of the property specified by tag as Boolean type.
tag | The MAPI property tag. |
System::ArrayPtr<uint8_t> Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyBytes | ( | int64_t | tag | ) |
Gets the string value of the property specified by tag.
tag | The MAPI property tag. |
System::Nullable<System::DateTime> Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyDateTime | ( | int64_t | key | ) |
Gets the value of the property specified by tag as DateTime type.
key | The MAPI property tag. |
System::Nullable<int32_t> Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyInt32 | ( | int64_t | tag | ) |
Gets the int32 value of the property specified by tag.
tag | The MAPI property tag. |
System::Nullable<int64_t> Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyLong | ( | int64_t | tag | ) |
Gets the value of the property specified by tag as Long (int64) type.
tag | The MAPI property tag. |
System::Nullable<int16_t> Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyShort | ( | int64_t | tag | ) |
Gets the value of the property specified by tag as Short type.
tag | The MAPI property tag. |
System::String Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyString | ( | int64_t | tag | ) |
Gets the string value of the property specified by tag.
tag | The MAPI property tag. |
System::String Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyString | ( | int64_t | tag, |
int32_t | codepage | ||
) |
Gets the string value of the property specified by tag.
tag | The MAPI property tag. |
codepage | The specified codepage used to get string value. |
System::SharedPtr<MapiPropertyCollection> Aspose::Email::Mapi::MapiPropertyContainer::GetSubStorages | ( | ) |
bool Aspose::Email::Mapi::MapiPropertyContainer::IsStoreUnicodeOk | ( | ) |
Determines if string properties are Unicode encoded or not.
void Aspose::Email::Mapi::MapiPropertyContainer::SetProperty | ( | int64_t | tag, |
System::ArrayPtr< uint8_t > | data | ||
) |
Set the property.
tag | The tag. |
data | The property data. |
void Aspose::Email::Mapi::MapiPropertyContainer::SetProperty | ( | int64_t | tag, |
System::DateTime | dateTime | ||
) |
Set the datetime property.
tag | The tag. |
dateTime | The dateTime. |
void Aspose::Email::Mapi::MapiPropertyContainer::SetProperty | ( | int64_t | tag, |
System::String | value | ||
) |
Set the string property with CurrentEncoding
tag | The tag. |
value | The property value. |
void Aspose::Email::Mapi::MapiPropertyContainer::SetProperty | ( | int64_t | tag, |
System::String | value, | ||
bool | isUnicode | ||
) |
Set the string property.
tag | The tag. |
value | The property value. |
isUnicode | If true, the Unicode encoding is used, otherwise the CurrentEncoding. |
void Aspose::Email::Mapi::MapiPropertyContainer::SetProperty | ( | int64_t | tag, |
System::String | value, | ||
OutlookMessageFormat | format | ||
) |
Set the string property.
tag | The tag. |
value | The property value. |
format | The type of encoding. If format == Unicode, the Unicode encoding is used, otherwise the CurrentEncoding. |
void Aspose::Email::Mapi::MapiPropertyContainer::SetProperty | ( | int64_t | tag, |
System::String | value, | ||
System::SharedPtr< System::Text::Encoding > | nonUnicodeEncoding | ||
) |
Set the string property.
tag | The tag. |
value | The property value. |
nonUnicodeEncoding | If message is Unicode, the Unicode encoding is used, otherwise the nonUnicodeEncoding. |
|
virtual |
Sets the property.
value | The property. |
ArgumentNullException | If value is null. |
ArgumentException | If property data is null. |
InvalidOperationException | If data type is not supported. |
Reimplemented in Aspose::Email::Mapi::MapiAttachment.
|
virtual |
Sets MAPI property.
pd | The property descriptor. |
value | The property data. |
Reimplemented in Aspose::Email::Mapi::MapiMessageItemBase, Aspose::Email::Mapi::MapiMessage, and Aspose::Email::Mapi::MapiAttachment.
void Aspose::Email::Mapi::MapiPropertyContainer::SetPropertyLong | ( | int64_t | tag, |
int64_t | value | ||
) |
Set the long property.
tag | The tag. |
value | The value. |
|
virtual |
If MapiNamedPropertyMappingStorage is available, initializes and returns MapiNamedProperty, otherwise null.
mapiProperty | |
mapiNamedProperty |
Reimplemented in Aspose::Email::Mapi::MapiRecipient, Aspose::Email::Mapi::MapiNamedPropertyMappingStorage, Aspose::Email::Mapi::MapiMessageItemBase, and Aspose::Email::Mapi::MapiAttachment.
System::ArrayPtr<uint8_t> Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyData | ( | int64_t | tag | ) |
Try to get the property data with specified tag key.
tag | The tag key. |
bool Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyDateTime | ( | int64_t | tag, |
System::DateTime & | value | ||
) |
Gets the value of the specified property as DateTime type. A return value indicates whether the operation succeeded.
tag | The MAPI property tag. |
value | When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized. |
bool Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyInt32 | ( | int64_t | tag, |
int32_t & | value | ||
) |
Gets the value of the specified property as Int32 type. A return value indicates whether the operation succeeded.
tag | The MAPI property tag. |
value | When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized. |
bool Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyLong | ( | int64_t | tag, |
int64_t & | value | ||
) |
Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded.
tag | The MAPI property tag. |
value | When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized. |
System::String Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyString | ( | int64_t | tag | ) |
Try to get a property data as string with specified tag.
tag | The property tag key. |
System::String Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyString | ( | int64_t | tag, |
int32_t | codepage | ||
) |
Try to get a property data as string with specified tag and code page.
tag | The property tag key. |
codepage | The code page. |
bool Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyString | ( | int64_t | tag, |
System::String & | value | ||
) |
Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.
tag | The MAPI property tag. |
value | When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized. |
bool Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyString | ( | int64_t | tag, |
System::String & | value, | ||
int32_t | codepage | ||
) |
Gets the value of the specified property as String type. A return value indicates whether the operation succeeded.
tag | The MAPI property tag. |
value | When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized. |
codepage | The specified codepage used to get string value. |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
int32_t Aspose::Email::Mapi::MapiPropertyContainer::codePage |
The code page.
|
static |
System::SharedPtr<MapiPropertyCollection> Aspose::Email::Mapi::MapiPropertyContainer::propertyDictionary |
The property dictionary.