MapiMessageItemBase.SetBodyContent
Contents
[
Hide
]SetBodyContent(string, BodyContentType)
Sets the content of the body.
public virtual void SetBodyContent(string content, BodyContentType contentType)
Parameter | Type | Description |
---|---|---|
content | String | The content. |
contentType | BodyContentType | Type of the content. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | throws if the specified content string is null or empty. |
Remarks
It is provided for setting of the content of the body message in RTF, HTML or Plain Text formats. When setting a value, the values of PR_RTF_COMPRESSED, PR_RTF_DECOMPRESSES, PR_BODY properties are updated as well. Note, after the value in HTML format is set, BodyRtf property returns the value which is encoded within RTF.
See Also
- enum BodyContentType
- class MapiMessageItemBase
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
SetBodyContent(string, BodyContentType, bool)
Sets the content of the body.
public virtual void SetBodyContent(string content, BodyContentType contentType, bool compression)
Parameter | Type | Description |
---|---|---|
content | String | The content. |
contentType | BodyContentType | Type of the content. |
compression | Boolean | Specify that the content should be compressed. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | throws if the specified content string is null or empty. |
Remarks
It is provided for setting of the content of the body message in RTF, HTML or Plain Text formats. When setting a value, the values of PR_RTF_COMPRESSED, PR_RTF_DECOMPRESSES, PR_BODY properties are updated as well. Note, after the value in HTML format is set, BodyRtf property returns the value which is encoded within RTF.
See Also
- enum BodyContentType
- class MapiMessageItemBase
- namespace Aspose.Email.Mapi
- assembly Aspose.Email