IncludeMimeContentIncludeMimeContent

IncludeMimeContent元素指定响应中是否返回项目或附件的多用途 Internet 邮件扩展(MIME)内容。The IncludeMimeContent element specifies whether the Multipurpose Internet Mail Extensions (MIME) content of an item or attachment is returned in the response.

<IncludeMimeContent>true or false</IncludeMimeContent>

booleanboolean

属性和元素Attributes and elements

下面各部分介绍了属性、子元素和父元素。The following sections describe attributes, child elements, and parent elements.

AttributesAttributes

无。None.

子元素Child elements

无。None.

父元素Parent elements

元素Element 说明Description
AttachmentShapeAttachmentShape
标识在对GetAttachment请求的响应中返回的其他属性。Identifies additional properties to return in a response to a GetAttachment request.

下面是此元素的 XPath 表达式: The following is the XPath expression to this element:

/GetAttachment/AttachmentShape
ItemShapeItemShape
标识要包括在 GetItem、FindItem 或 SyncFolderItems 响应中的项目属性和内容。Identifies the item properties and content to include in a GetItem, FindItem, or SyncFolderItems response.

下面是此元素的 XPath 表达式:The following are the XPath expressions to this element:

/GetItem/ItemShape

/FindItem/ItemShape

/SyncFolderItems/ItemShape

文本值Text value

此元素可以是true ,也可以是falseThis element can be either true or false. 默认值为 falseThe default value is false. 这是一个 Boolean 数据类型。This is a Boolean data type.

说明Remarks

此元素为可选。This element is optional.

描述此元素的架构位于正在运行 MicrosoftExchange Server 2007 的计算机(已安装客户端访问服务器角色)的 EWS 虚拟目录中。The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server 2007 that has the Client Access server role installed.

示例Example

下面的请求示例演示如何设置IncludeMimeContent元素。The following example of a request demonstrates a how to set the IncludeMimeContent element.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Body>
    <GetAttachment xmlns="https://schemas.microsoft.com/exchange/services/2006/messages" 
                      xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
      <AttachmentShape>
        <t:IncludeMimeContent>true</t:IncludeMimeContent>
        <t:BodyType>Best</t:BodyType>
      </AttachmentShape>
      <AttachmentIds>
        <t:AttachmentId Id="ASkAS="/>
      </AttachmentIds>
    </GetAttachment>
  </soap:Body>
</soap:Envelope>

将截断附件 Id 属性以保留可读性。The attachment Id attribute is truncated to preserve readability.

元素信息Element information

命名空间Namespace
https://schemas.microsoft.com/exchange/services/2006/types
架构名称Schema Name
类型架构Types schema
验证文件Validation File
Types.xsdTypes.xsd
可以为空Can be Empty
FalseFalse