OofState

OofState 要素は、ユーザーの Out of Office (OOF) 状態を取得または設定するために使用されます。

<OofState>Disabled or Enabled or Scheduled</OofState>

OofState

属性と要素

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

属性

なし。

子要素

なし。

親要素

要素 説明
UserOofSettings
OOF 設定を指定します。
この要素への XPath 式を次に示します:
/SetUserOofSettingsRequest/UserOofSettings
OofSettings
OOF 設定が含まれます。
この要素への XPath 式を次に示します:
/GetUserOofSettingsResponse/OofSettings

テキスト値

OofState 要素にはテキスト値が必要です。 次の一覧には、この要素に使用できる値が含まれています。

  • Disabled

  • Enabled (有効)

  • スケジュール済み

Scheduled の値は、Duration (UserOofSettings) 要素によって識別される期間に OOF 状態が Enabled に設定されていることを示します。

注釈

この要素は、SetUsersOofSettingRequest メッセージと GetUserOofSettingResponse メッセージの両方で必要です。

この要素を記述するスキーマは、クライアント アクセス サーバーの役割がインストールされている MicrosoftExchange Server 2007 を実行しているコンピューターの EWS 仮想ディレクトリにあります。

次の SetUserOofSettings 要求の例では、 OofState が有効になります。

<?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>

要素の情報

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

関連項目

GetUserOofSettings 操作

SetUserOofSettings 操作