IncludeMimeContent

IncludeMimeContent 元素指定在响应中是否返回多用途 Internet 邮件扩展 (MIME) 内容。

<IncludeMimeContent>true or false</IncludeMimeContent>

boolean

属性和元素

下面各部分介绍了属性、子元素和父元素。

Attributes

无。

子元素

无。

父元素

元素 说明
AttachmentShape
标识在 响应 GetAttachment 请求时要返回的其他属性。

下面是此元素的 XPath 表达式:

/GetAttachment/AttachmentShape
ItemShape
标识要包含在 GetItem、FindItem 或 SyncFolderItems 响应中的项属性和内容。

下面是此元素的 XPath 表达式:

/GetItem/ItemShape

/FindItem/ItemShape

/SyncFolderItems/ItemShape

文本值

此元素可以是 truefalse。 默认值为 false。 这是一种布尔数据类型。

备注

此元素为可选。

描述此元素的架构位于正在运行 MicrosoftExchange Server 2007 的计算机(已安装客户端访问服务器角色)的 EWS 虚拟目录中。

示例

以下请求示例演示了如何设置 IncludeMimeContent 元素。

<?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 属性将被截断,以保持可读性。

元素信息

元素 示例
命名空间
https://schemas.microsoft.com/exchange/services/2006/types
架构名称
类型架构
验证文件
Types.xsd
可以为空
False