次の方法で共有


BodyTypeType Enumeration

The BodyTypeType enumeration specifies the item body type.

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

Syntax

'Declaration
<SerializableAttribute> _
Public Enumeration BodyTypeType
'Usage
Dim instance As BodyTypeType
[SerializableAttribute]
public enum BodyTypeType

Members

Member name Description
HTML Identifies the item body as HTML content.
Text Identifies the item body as plain text content.

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.

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.

See Also

Reference

Other Resources