BuildTask 类

定义

表示项目中的一个 Task 元素。Represents a Task element in a project.

public ref class BuildTask
public class BuildTask
type BuildTask = class
Public Class BuildTask
继承
BuildTask

属性

Condition

获取或设置 Task 元素的 Condition 特性值。Gets or sets the Condition attribute value of the Task element.

ContinueOnError

获取或设置 Task 元素的 ContinueOnError 特性值。Gets or sets the ContinueOnError attribute value of the Task element.

HostObject

获取或设置与此任务关联的宿主对象。Gets or sets the host object associated with the task.

Name

获取任务名。Gets the task name.

Type

获取实现该任务的类的 TypeGets the Type of the class that implements the task.

方法

AddOutputItem(String, String)

将具有指定的 TaskParameterItemName 属性的 Output 元素添加到 Task 元素。Adds an Output element with the specified TaskParameter and ItemName attributes to the Task element.

AddOutputProperty(String, String)

将具有指定的 TaskParameterPropertyName 属性的 Output 元素添加到 Task 元素。Adds an Output element with the specified TaskParameter and PropertyName attributes to the Task element.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Execute()

运行此 BuildTask 对象表示的任务。Runs the task represented by this BuildTask object.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetParameterNames()

获取包含传递给任务的参数名的数组。Gets an array containing the parameter names passed to the task.

GetParameterValue(String)

获取指定的任务参数的值。Gets the value of the specified task parameter.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
SetParameterValue(String, String)

设置指定的任务参数的值。Sets the value of the specified task parameter.

SetParameterValue(String, String, Boolean)

设置指定的任务参数的值。Sets the value of the specified task parameter.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于