BodyTypeType enumeration

The BodyTypeType enumeration specifies the item body type.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

public enum BodyTypeType

Member nameDescription
HTMLIdentifies the item body as HTML content.
TextIdentifies the item body as plain text content.

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.

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.&nbsp;</li>" + 
"<li>Hiring updates.&nbsp;</li>" + 
"<li>Design plan for new facilities.</li>" + 
"<li>Identify new opportunities for operational efficiency.&nbsp;</li>" +
"</ul><p>Please provide feedback before the meeting.&nbsp;</p></body></html>";

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