Duration (UserOofSettings)

Duration 要素 は、OofState 要素が Scheduled に設定されている場合に、アウトオブオフィス (OOF) 状態が有効になっている期間を指定 します

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

Duration

属性と要素

以下のセクションで、属性、子要素、親要素について説明します。

属性

なし。

子要素

Element 説明
StartTime
OOF 状態を持つ期間セットの開始を表します。 この要素は必須です。
EndTime
OOF 状態を持つ期間セットの終了を表します。 この要素は必須です。

親要素

要素 説明
UserOofSettings
OOF 設定を指定します。

この要素への XPath 式を次に示します:

/SetUserOofSettingsRequest/UserOofSettings
OofSettings
OOF 設定が含まれる。

この要素への XPath 式を次に示します:

/GetUserOofSettingsResponse/OofSettings
OutOfOffice
メールボックスの応答メッセージOffice送信する時間を定義します。

注釈

期間 種類は、 DetailedSuggestionsWindowTimeWindowおよび OutOfOffice 要素の型です。

この要素を記述するスキーマは、Exchange Web サービスをホストする IIS 仮想ディレクトリに置かれています。

SetUserOofSettings 操作要求の次の例では、OofState を内部および外部の OOF メッセージである Enabled に設定し、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>

要素の情報

要素
Namespace
https://schemas.microsoft.com/exchange/services/2006/types
スキーマ名
型スキーマ
検証ファイル
Types.xsd
空に設定可能
False

関連項目