Partager via


BodyTypeType Enumeration

The BodyTypeType enumeration specifies the item body type.

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

Syntax

'Declaration
<SerializableAttribute> _
<XmlTypeAttribute(Namespace:="https://schemas.microsoft.com/exchange/services/2006/types")> _
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
Public Enumeration BodyTypeType
[SerializableAttribute] 
[XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types")] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
public enum BodyTypeType
[SerializableAttribute] 
[XmlTypeAttribute(Namespace=L"https://schemas.microsoft.com/exchange/services/2006/types")] 
[GeneratedCodeAttribute(L"wsdl", L"2.0.50727.42")] 
public enum class BodyTypeType
/** @attribute SerializableAttribute() */ 
/** @attribute XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types") */ 
/** @attribute GeneratedCodeAttribute("wsdl", "2.0.50727.42") */ 
public enum BodyTypeType
SerializableAttribute 
XmlTypeAttribute(Namespace="https://schemas.microsoft.com/exchange/services/2006/types") 
GeneratedCodeAttribute("wsdl", "2.0.50727.42") 
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.

Example

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.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)

See Also