Message (Availability)

Message 元素包含 office 外 (OOF) 响应。

<Message/> 

string

属性和元素

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

Attributes

无。

子元素

无。

父元素

元素 说明
InternalReply
包含发送给发件人域中其他用户的 OOF 消息。

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

/SetUserOofSettingsRequest/UserOofSettings/InternalReply

/GetUserOofSettingsResponse/OofSettings/InternalReply
ExternalReply
包含发送到发件人域外部地址的 OOF 消息。

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

/SetUserOofSettingsRequest/UserOofSettings/ExternalReply

/GetUserOofSettingsResponse/OofSettings/ExternalReply
ReplyBody
包含 OOF 消息和用于消息的语言。

文本值

设置 OOF 消息需要文本值。

说明

描述此元素的架构位于承载 Exchange Web Services 的 IIS 虚拟目录中。

示例

下面的 SetUserOofSettings 操作 请求示例将 OofState 设置为 Enabled,将 OOF 的持续时间设置为 10 天,并设置内部和外部 OOF 消息。

<?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/">
  <soap:Body>
    <SetUserOofSettingsRequest xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
      <Mailbox xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
        <Name>David Alexander</Name>
        <Address>someone@example.com</Address>
        <RoutingType>SMTP</RoutingType>
      </Mailbox>
      <UserOofSettings xmlns="https://schemas.microsoft.com/exchange/services/2006/types">
        <OofState>Enabled</OofState>
        <ExternalAudience>All</ExternalAudience>
        <Duration>
          <StartTime>2005-10-05T00:00:00</StartTime>
          <EndTime>2005-10-25T00:00:00</EndTime>
        </Duration>
        <InternalReply>
          <Message>I am out of office.  This is my internal reply.</Message>
        </InternalReply>
        <ExternalReply>
          <Message>I am out of office. This is my external reply.</Message>
        </ExternalReply>
      </UserOofSettings>
    </SetUserOofSettingsRequest>
  </soap:Body>
</soap:Envelope>

元素信息

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

另请参阅