BodyTypeType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.&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.
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.