Duration (UserOofSettings)

Duration 元素指定如果 OofState 元素设置为 Scheduled,则启用外出 (OOF) 状态的持续时间。

<Duration>
   <StartTime/>
   <EndTime/> 
</Duration>

Duration

属性和元素

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

Attributes

无。

子元素

元素 说明
StartTime
表示具有 OOF 状态的时间跨度集的开始时间。 此元素是必需的。
EndTime
表示具有 OOF 状态的时间跨度集的结束。 此元素是必需的。

父元素

元素 说明
UserOofSettings
指定 OOF 设置。

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

/SetUserOofSettingsRequest/UserOofSettings
OofSettings
包含 OOF 设置。

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

/GetUserOofSettingsResponse/OofSettings
OutOfOffice
定义外出 (OOF) 响应邮件,以及发送邮箱响应邮件的持续时间。

备注

Duration 类型也是 DetailedSuggestionsWindowTimeWindowOutOfOffice 元素的类型。

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

示例

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

<?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>
        <SetByLegacyClient>false</SetByLegacyClient>
      </UserOofSettings>
    </SetUserOofSettingsRequest>
  </soap:Body>
</soap:Envelope>

元素信息

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

另请参阅