IsSubproject 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.

Indicates whether the task is an inserted project.

<IsSubproject>
  BooleanValue
</IsSubproject>

Parent Elements

Task

Occurrences

Minimum: 0

Maximum: 1

Text Value

A text value of type boolean is required.

Value

Description

0

False

1

True

Example

The following example shows a local project file inserted as task ID 3 in a master project. The XML file for the master project includes the complete Project element for the inserted project as a child of task ID 3.

<Project xmlns="http://schemas.microsoft.com/project">
   . . .
   <Tasks>
      . . .
      <Task>
         <UID>4</UID>
         <ID>3</ID>
         <Name>SubProj</Name>
         <Type>1</Type>
         . . .
         <Summary>1</Summary>
         <Critical>1</Critical>
         <IsSubproject>1</IsSubproject>
         <IsSubprojectReadOnly>0</IsSubprojectReadOnly>
         <SubprojectName>C:\Project\P12\XML\Samples\SubProj.mpp</SubprojectName>
         <ExternalTask>0</ExternalTask>
         . . .
         <Project xmlns="http://schemas.microsoft.com/project">
            . . .
            <Tasks>
               <Task>
                  . . .
               </Task>
               . . .
            </Tasks>
            . . .
         </Project>
      </Task>
   </Tasks>
   . . .
</Project>

See Also

Concepts

Task Elements and XML Structure

XML Schema for the Tasks Element