SetUserOofSettingsRequestSetUserOofSettingsRequest

SetUserOofSettingsRequest元素包含用于设置邮箱用户的外出(OOF)设置的参数。The SetUserOofSettingsRequest element contains the arguments used to set a mailbox user's Out of Office (OOF) settings.

<SetUserOofSettingsRequest>
   <Mailbox>...</Mailbox>
   <UserOofSettings>...</UserOofSettings>
<SetUserOofSettingsRequest>

SetUserOofSettingsRequestSetUserOofSettingsRequest

属性和元素Attributes and elements

下面各部分介绍了属性、子元素和父元素。The following sections describe attributes, child elements, and parent elements.

AttributesAttributes

无。None.

子元素Child elements

元素Element 说明Description
邮箱(可用性)Mailbox (Availability)
标识 SetUserOofSettings 或 GetUserOofSettings 请求的邮箱用户。Identifies the mailbox user for a SetUserOofSettings or GetUserOofSettings request.
UserOofSettingsUserOofSettings
指定 OOF 设置。Specifies the OOF settings.

父元素Parent elements

无。None.

说明Remarks

描述此元素的架构位于正在运行 MicrosoftExchange Server 2007 的计算机(已安装客户端访问服务器角色)的 EWS 虚拟目录中。The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server 2007 that has the Client Access server role installed.

示例Example

以下示例的 SetUserOofSettings 请求将 OOF 设置设置为10天。The following example of a SetUserOofSettings request sets an OOF setting for ten days.

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

元素信息Element information

命名空间Namespace
https://schemas.microsoft.com/exchange/services/2006/messages
架构名称Schema Name
消息架构Messages schema
验证文件Validation File
Messages.xsdMessages.xsd
可以为空Can be Empty
FalseFalse

另请参阅See also

SetUserOofSettings 操作SetUserOofSettings operation