MapiMessageItemBase.SetBodyContent
Contents
[
Hide
]SetBodyContent(string, BodyContentType)
Sets the body of the item in the specified format.
public virtual void SetBodyContent(string content, BodyContentType contentType)
| Parameter | Type | Description |
|---|---|---|
| content | String | The text of the body. |
| contentType | BodyContentType | The format of content. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | content is null or empty. |
Remarks
The plain-text body, the RTF body and the compressed RTF property are all updated. After HTML content is set, BodyRtf returns that HTML encapsulated in RTF.
See Also
- enum BodyContentType
- class MapiMessageItemBase
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
SetBodyContent(string, BodyContentType, bool)
Sets the body of the item in the specified format, optionally compressing it.
public virtual void SetBodyContent(string content, BodyContentType contentType, bool compression)
| Parameter | Type | Description |
|---|---|---|
| content | String | The text of the body. |
| contentType | BodyContentType | The format of content. |
| compression | Boolean | true to store the RTF body compressed. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | content is null or empty. |
Remarks
The plain-text body, the RTF body and the compressed RTF property are all updated. After HTML content is set, BodyRtf returns that HTML encapsulated in RTF.
See Also
- enum BodyContentType
- class MapiMessageItemBase
- namespace Aspose.Email.Mapi
- assembly Aspose.Email