百分比元素描述任务的完成状态。The PercentComplete element describes the completion status of a task.



属性和元素Attributes and elements

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



子元素Child elements


父元素Parent elements

元素Element 说明Description
表示 Exchange 存储中的任务。Represents a task in the Exchange store.

文本值Text value

一个代表0到100之间的整数的文本值是必需的。A text value that represents an integer between 0 and 100 is required.


百分比设置为100与设置CompleteDate元素或将Status元素设置为 "已完成" 具有相同的效果。Setting PercentComplete to 100 has the same effect as setting the CompleteDate element or setting the Status element to Completed. 在设置至少两个属性中的一个请求中,最后处理的属性将确定为这些元素设置的值。In a request that sets at least two of these properties, the last processed property will determine the value that is set for these elements. 例如,如果百分比为100,则CompleteDate为 2007 1 月1日,且状态为 NotStarted,并且按此顺序对属性进行流式处理,则效果是将任务的状态设置为 NotStarted,将CompleteDate设置为null,并将百分比为0。For example, if PercentComplete is 100, CompleteDate is January 1, 2007, and Status is NotStarted, and the properties are streamed in this order, the effect will be to set the Status of the task to NotStarted, the CompleteDate to null, and the PercentComplete to 0.

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

元素信息Element information

架构名称Schema Name
类型架构Types schema
验证文件Validation File
可以为空Can be Empty

另请参阅See also

创建任务Creating Tasks

删除任务Deleting Tasks