Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ProjectTaskInstance Class

Namespace:  Microsoft.Build.Execution
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

[DebuggerDisplayAttribute(L"Name={name} Condition={condition} ContinueOnError={continueOnError} MSBuildRuntime={MSBuildRuntime} MSBuildArchitecture={MSBuildArchitecture} #Parameters={parameters.Count} #Outputs={outputs.Count}")]
public ref class ProjectTaskInstance sealed : public ProjectTargetInstanceChild

The ProjectTaskInstance type exposes the following members.

Public propertyConditionGets the unevaluated Condition attribute of this task. (Overrides ProjectTargetInstanceChild::Condition.)
Public propertyConditionLocationLocation of the condition, if any (Overrides ProjectTargetInstanceChild::ConditionLocation.)
Public propertyContinueOnErrorGets the unevaluated ContinueOnError attribute of the task.
Public propertyContinueOnErrorLocationLocation of the ContinueOnError attribute, if any
Public propertyFullPathGets the full path to the file from which this task originated. (Inherited from ProjectTargetInstanceChild.)
Public propertyLocationLocation of the original element (Overrides ProjectTargetInstanceChild::Location.)
Public propertyMSBuildArchitectureUnevaluated MSBuildArchitecture on the task. May be empty string.
Public propertyMSBuildArchitectureLocationLocation of the MSBuildArchitecture attribute, if any
Public propertyMSBuildRuntimeUnevaluated MSBuildRuntime on the task. May be empty string.
Public propertyMSBuildRuntimeLocationLocation of the MSBuildRuntime attribute, if any
Public propertyNameGets the name of the task, possibly qualified, as it appears in the project.
Public propertyOutputsGets an ordered set of the output property and item objects of this task.
Public propertyParametersGets an unordered set of the task parameter names and unevaluated values of this task.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

This is an immutable class

.NET Framework

Supported in: 4.6, 4.5, 4

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft