Task Class

Namespace:  Microsoft.TeamFoundation.Build.Tasks
Assembly:  Microsoft.TeamFoundation.Build.ProcessComponents (in Microsoft.TeamFoundation.Build.ProcessComponents.dll)

public abstract class Task : ITask

The Task type exposes the following members.

  NameDescription
Protected methodTask
Top

  NameDescription
Public propertyBuildEngineITask implementation—BuildEngine property.
Public propertyBuildUriProperty that gives the URI of the build for which this task is executing. Derived classes can override this property to make it required.
Public propertyHostObjectITask implementation—HostObject property.
Public propertyTeamFoundationServerUrlProperty that gives the URL of the Team Foundation Server.
Protected propertyTfsLazy [init] property that gives access to the Team Foundation Server.
Top

  NameDescription
Protected methodStatic memberAddNameValuePair(String)
Protected methodStatic memberAddNameValuePair(String, ITaskItem[])
Protected methodStatic memberAddNameValuePair(String, Boolean)
Protected methodStatic memberAddNameValuePair(String, String)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExecuteITask implementation - Execute method.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetParameterLog
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodLogCustomEventHelper to log a custom event if the task is running within MSBuild.
Protected methodLogErrorHelper to log an error string if the task is running within MSBuild.
Protected methodLogErrorEventHelper to log an error event if the task is running within MSBuild.
Protected methodLogMessage(String)Helper to log a message string if the task is running within MSBuild.
Protected methodLogMessage(String, MessageImportance)Helper to log a message string if the task is running within MSBuild.
Protected methodLogMessageEventHelper to log a message event if the task is running within MSBuild.
Protected methodLogWarningHelper to log a warning string if the task is running within MSBuild.
Protected methodLogWarningEventHelper to log a warning event if the task is running within MSBuild.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft