Edit

Share via


BodyTypeType Enum

Definition

The BodyTypeType enumeration specifies the item body type.

public enum class BodyTypeType
public enum BodyTypeType
Public Enum BodyTypeType
Inheritance
BodyTypeType

Fields

Name Value Description
HTML 0

Identifies the item body as HTML content.

Text 1

Identifies the item body as plain text content.

Examples

The following example shows you how the BodyTypeType enumeration is used to designate an HTML body type for a message.

// Compose e-mail message.
message.Subject = "High Priority Projects for Q3";
message.Body = new BodyType();
message.Body.BodyType1 = BodyTypeType.HTML;
message.Body.Value = "<html><body style='font-family: Arial'><ul>" +
"<li>Create budget for next fiscal year. </li>" + 
"<li>Hiring updates. </li>" + 
"<li>Design plan for new facilities.</li>" + 
"<li>Identify new opportunities for operational efficiency. </li>" +
"</ul><p>Please provide feedback before the meeting. </p></body></html>";

The BodyTypeType enumeration is the type that is used to set the BodyType1 property on a BodyType object.

Remarks

This enumeration is used to either designate the body type during a request or to determine what type of body is returned in a response.

Applies to