This documentation is archived and is not being maintained.
ProjectTaskElement Class
Visual Studio 2010
Represents a Task Element (MSBuild) in an MSBuild project.
System::Object
Microsoft.Build.Construction::ProjectElement
Microsoft.Build.Construction::ProjectElementContainer
Microsoft.Build.Construction::ProjectTaskElement
Microsoft.Build.Construction::ProjectElement
Microsoft.Build.Construction::ProjectElementContainer
Microsoft.Build.Construction::ProjectTaskElement
Assembly: Microsoft.Build (in Microsoft.Build.dll)
The ProjectTaskElement type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AllChildren | Gets a recursive depth-first enumerator over all child elements. (Inherited from ProjectElementContainer.) |
![]() | AllParents | All parent elements of this element, going up to the ProjectRootElement. (Inherited from ProjectElement.) |
![]() | Children | Gets all child elements. (Inherited from ProjectElementContainer.) |
![]() | ChildrenReversed | Gets all child elements, starting from the last child. (Inherited from ProjectElementContainer.) |
![]() | Condition | Gets or sets the Condition attribute of this project element. (Inherited from ProjectElement.) |
![]() | ContainingProject | Gets the project root container that contains this project. (Inherited from ProjectElement.) |
![]() | ContinueOnError | Gets or sets the ContinueOnError attribute value. |
![]() | Count | Gets the number of child elements. (Inherited from ProjectElementContainer.) |
![]() | FirstChild | Gets the first child element. (Inherited from ProjectElementContainer.) |
![]() | Label | Gets or sets the Label value. (Inherited from ProjectElement.) |
![]() | LastChild | Gets the last child element. (Inherited from ProjectElementContainer.) |
![]() | Name | Gets the name of this task. |
![]() | NextSibling | Gets the next sibling of this project element. (Inherited from ProjectElement.) |
![]() | Outputs | Gets all Output Element (MSBuild) children. |
![]() | Parameters | Gets all unevaluated parameters of this task. |
![]() | Parent | Gets the project element container that contains this project. (Inherited from ProjectElement.) |
![]() | PreviousSibling | Gets the previous sibling of this project element. (Inherited from ProjectElement.) |
| Name | Description | |
|---|---|---|
![]() | AddOutputItem(String, String) | Adds an Output item after the last child. |
![]() | AddOutputItem(String, String, String) | Adds a conditioned Output item to this task after the last child. |
![]() | AddOutputProperty(String, String) | Adds an Output property to this task after the last child. |
![]() | AddOutputProperty(String, String, String) | Adds a conditioned Output property to this task after the last child. |
![]() | AppendChild | Appends the child element as the last child of this project container. (Inherited from ProjectElementContainer.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetParameter | Gets the value of the parameter with the specified name. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InsertAfterChild | Inserts the child element after the reference element. (Inherited from ProjectElementContainer.) |
![]() | InsertBeforeChild | Inserts the child element before the reference element. (Inherited from ProjectElementContainer.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | PrependChild | Prepends the child element as the first child of this project container. (Inherited from ProjectElementContainer.) |
![]() | RemoveAllChildren | Removes all the children, if any, from this project container. (Inherited from ProjectElementContainer.) |
![]() | RemoveAllParameters | Removes all parameters from the task. Does not remove any ContinueOnError and/or Condition attributes. |
![]() | RemoveChild | Removes a child element from this project container. (Inherited from ProjectElementContainer.) |
![]() | RemoveParameter | Removes any parameter on this task with the specified name. If no parameter by that name exists in the task, does nothing. |
![]() | SetParameter | Updates or adds a parameter on this task |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
