次の方法で共有


WorkWeeks Element

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Contains a collection of work week defintions.

<WorkWeeks>
</WorkWeeks>

Parent Elements

Exception

Child Elements

WorkWeek

Occurrences

Minimum: 0

Maximum: 1

Remarks

For an example that uses the WorkWeeks element, see Calendar Element

Caution noteCaution

In the releases of Project 2007 through SP1, the WorkWeeks element name is missing when you save a project that has a non-default work week as XML. If you try to open the XML file in Project, you get the error, "An unexpected problem occurred while opening the file. The file may be damaged." The workaround is to edit the XML file and add the WorkWeeks element name, as in the following example. The XML file then opens normally. However, because the WorkWeek element contains other errors, we recommend that you do not use Project XML files to save work week data until the errors are fixed in a later service pack. For more information about editing other elements for work weeks, see the WorkWeek Element.

Example

The following example defines a non-standard work week named Test work week. The WorkWeeks opening and closing element is manually edited.

<Calendar>
   . . .
   <WorkWeeks>
      <WorkWeek>
         <TimePeriod>
            <FromDate>2007-11-26T00:00:00</FromDate>
            <ToDate>2007-11-26T23:59:00</ToDate>
         </TimePeriod>
         <Name>Test work week</Name>
      </WorkWeek>
   </WorkWeeks>
</Calendar>

See Also

Concepts

Calendar Elements and XML Structure

XML Schema for the Calendars Element