SetBodyContent

MapiContact.SetBodyContent method

Sets the content of the body.

public override 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