Task Class
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Build.Tasks.Task
Microsoft.TeamFoundation.Build.Tasks.BuildStep
Microsoft.TeamFoundation.Build.Tasks.GetBuildProperties
Microsoft.TeamFoundation.Build.Tasks.WorkflowTask
Namespace: Microsoft.TeamFoundation.Build.Tasks
Assembly: Microsoft.TeamFoundation.Build.ProcessComponents (in Microsoft.TeamFoundation.Build.ProcessComponents.dll)
Syntax
'Declaration
Public MustInherit Class Task _
Implements ITask
public abstract class Task : ITask
public ref class Task abstract : ITask
[<AbstractClass>]
type Task =
class
interface ITask
end
public abstract class Task implements ITask
The Task type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Task |
Top
Properties
Name | Description | |
---|---|---|
BuildEngine | ITask implementation—[BuildEngine] property. | |
BuildUri | Property that gives the URI of the build for which this task is executing. Derived classes can override this property to make it required. | |
HostObject | ITask implementation—[HostObject] property. | |
TeamFoundationServerUrl | Property that gives the URL of the Team Foundation Server. | |
Tfs | Lazy [init] property that gives access to the Team Foundation Server. |
Top
Methods
Name | Description | |
---|---|---|
AddNameValuePair(String) | ||
AddNameValuePair(String, array<ITaskItem[]) | ||
AddNameValuePair(String, Boolean) | ||
AddNameValuePair(String, String) | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute | ITask implementation - Execute method. | |
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.) | |
GetParameterLog | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LogCustomEvent | Helper to log a custom event if the task is running within MSBuild. | |
LogError | Helper to log an error string if the task is running within MSBuild. | |
LogErrorEvent | Helper to log an error event if the task is running within MSBuild. | |
LogMessage(String) | Helper to log a message string if the task is running within MSBuild. | |
LogMessage(String, MessageImportance) | Helper to log a message string if the task is running within MSBuild. | |
LogMessageEvent | Helper to log a message event if the task is running within MSBuild. | |
LogWarning | Helper to log a warning string if the task is running within MSBuild. | |
LogWarningEvent | Helper to log a warning event if the task is running within MSBuild. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.