InternalReplyInternalReply

InternalReply元素包含向用户域或受信任域中的其他用户发送的外出(OOF)响应。The InternalReply element contains the out of office (OOF) response sent to other users in the user's domain or trusted domains.

<InternalReply>
   <Message/> 
</InternalReply>

ReplyBodyReplyBody

属性和元素Attributes and elements

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

AttributesAttributes

属性Attribute 说明Description
xml: langxml:lang
指定在InternalReply消息中使用的语言。Specifies the language used in the InternalReply message. 此属性的可能值由 IETF RFC 3066 定义。The possible values of this attribute are defined by IETF RFC 3066.

子元素Child elements

元素Element 说明Description
邮件(可用性)Message (Availability)
包含 OOF 响应。Contains the OOF response.

父元素Parent elements

元素Element 说明Description
UserOofSettingsUserOofSettings
指定 OOF 设置。Specifies the OOF settings.
下面是此元素的 XPath 表达式: The following is the XPath expression to this element:
/SetUserOofSettingsRequest/UserOofSettings
OofSettingsOofSettings
包含 OOF 设置。Contains the OOF settings.
下面是此元素的 XPath 表达式: The following is the XPath expression to this element:
/GetUserOofSettingsResponse/OofSettings

说明Remarks

描述此元素的架构位于承载 Exchange Web Services 的 IIS 虚拟目录中。The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web Services.

示例Example

以下示例的 SetUserOofSettings 请求将OofState设置为 "启用",将 "OOF" 的持续时间设置为10天,并设置内部和外部 OOF 邮件。The following example of a SetUserOofSettings request sets the OofState to Enabled, sets the duration of OOF for 10 days, and sets the internal and external OOF messages.

<?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/types
架构名称Schema Name
类型架构Types schema
验证文件Validation File
Types.xsdTypes.xsd
可以为空Can be Empty
FalseFalse

另请参阅See also

GetUserOofSettings 操作GetUserOofSettings operation

SetUserOofSettings 操作SetUserOofSettings operation