次の方法で共有


Change Element

Applies to: Office 2010 | Project 2010 | Project Server 2010 | SharePoint Server 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences
Text Value

Specifies the field to change with a status update and contains the new value for that field.

<Change
  PID="Integer" 
  ChangeNumber="Integer" >
      UpdateValue
</Change>

Attributes

Attribute

Description

PID

Required Integer. Specifies the Project identifier (PID) of the field to change.

ChangeNumber

Optional Integer. Used to track changes. The value is -1 if changes are not tracked. ChangeNumber is not used if the parent is the Task element.

Child Elements

None

Parent Elements

Assn, Task

Occurrences

Minimum: 0 in parent Assn, 1 in parent Task

Maximum: Unbounded

Text Value

A text value is required. This text specifies the update value for the field.

Note

The text value must match the data type required by the specified field.

Remarks

For information about updatable fields, PIDs, and required data types, see Supported Project Fields and Field Information for Statusing ChangeXML.

Example

The following example uses two Change elements to define two updates to a single task. The first Change element updates the Start field for the task to the value 8am January 10, 2007. The second Change element updates the Deadline field for the task to the value of 4pm January 31, 2007.

<Changes>
  <Proj ID="a47faeab-0f72-455a-b629-d62faf5fece6">
    <Task ID="0f8e477d-8dd9-4011-95cc-2499bb10cf10">
      <Change PID="184549386">2007-01-10T08:00:00</Change>
      <Change PID="184549394">2007-01-31T16:00:00</Change>
    </Task>
  </Proj>
</Changes>