Aspose::Email::Mapi::MapiMessagePropertyStream Class Reference

Represents the property stream. More...

Inherits Aspose::Email::Mapi::MapiPropertyStream.

Public Member Functions

 MapiMessagePropertyStream (System::SharedPtr< MapiMessageItemBase > parent)
 Initializes a new instance of the MapiMessagePropertyStream class. More...
 
 MapiMessagePropertyStream (System::SharedPtr< MapiPropertyCollection > properties)
 Initializes a new instance of the MapiMessagePropertyStream class. More...
 
System::SharedPtr< System::IO::MemoryStream > GetContent (int32_t recipientsCount, int32_t attachmentsCount)
 Gets the content. More...
 
- Public Member Functions inherited from Aspose::Email::Mapi::MapiPropertyStream
System::String get_Name ()
 Gets the name. More...
 
System::SharedPtr< MapiPropertyCollectionget_Properties () override
 Gets the collection of properties. More...
 
System::SharedPtr< System::Object > get_Content ()
 Gets the content. More...
 
- Public Member Functions inherited from Aspose::Email::Mapi::MapiPropertyContainer
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< MapiPropertyGetProperty (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< MapiPropertyCollectionGetSubStorages ()
 
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...
 

Protected Member Functions

System::SharedPtr< System::IO::MemoryStream > GetContent () override
 Gets the content. More...
 
- Protected Member Functions inherited from Aspose::Email::Mapi::MapiPropertyContainer
virtual ~MapiPropertyContainer ()
 

Friends

class Aspose::Email::Storage::Pst::PstDoer
 

Additional Inherited Members

- Static Public Member Functions inherited from Aspose::Email::Mapi::MapiPropertyStream
static System::ArrayPtr< uint8_t > ToBytes (int64_t value)
 
static System::ArrayPtr< uint8_t > GetDataForStream (System::SharedPtr< MapiProperty > prop)
 
- Public Attributes inherited from Aspose::Email::Mapi::MapiPropertyContainer
int32_t codePage
 The code page. More...
 
System::SharedPtr< MapiPropertyCollectionpropertyDictionary
 The property dictionary. More...
 
- Static Public Attributes inherited from Aspose::Email::Mapi::MapiPropertyContainer
static const int32_t DefaultCodePage
 

Detailed Description

Represents the property stream.

Constructor & Destructor Documentation

◆ MapiMessagePropertyStream() [1/2]

Aspose::Email::Mapi::MapiMessagePropertyStream::MapiMessagePropertyStream ( System::SharedPtr< MapiMessageItemBase parent)

Initializes a new instance of the MapiMessagePropertyStream class.

Parameters
parentThe parent.

◆ MapiMessagePropertyStream() [2/2]

Aspose::Email::Mapi::MapiMessagePropertyStream::MapiMessagePropertyStream ( System::SharedPtr< MapiPropertyCollection properties)

Initializes a new instance of the MapiMessagePropertyStream class.

Member Function Documentation

◆ GetContent() [1/2]

System::SharedPtr<System::IO::MemoryStream> Aspose::Email::Mapi::MapiMessagePropertyStream::GetContent ( )
overrideprotectedvirtual

Gets the content.

Returns
The System::IO::MemoryStream

Implements Aspose::Email::Mapi::MapiPropertyStream.

◆ GetContent() [2/2]

System::SharedPtr<System::IO::MemoryStream> Aspose::Email::Mapi::MapiMessagePropertyStream::GetContent ( int32_t  recipientsCount,
int32_t  attachmentsCount 
)

Gets the content.

Returns

Friends And Related Function Documentation

◆ Aspose::Email::Storage::Pst::PstDoer

friend class Aspose::Email::Storage::Pst::PstDoer
friend