TaskLoggingHelper 构造函数

定义

初始化 TaskLoggingHelper 类的新实例。Initializes a new instance of the TaskLoggingHelper class.

重载

TaskLoggingHelper(ITask)

公共构造函数public constructor

TaskLoggingHelper(IBuildEngine, String)

有助于任务工厂记录消息的公共构造函数。Public constructor which can be used by task factories to assist them in logging messages.

TaskLoggingHelper(ITask)

公共构造函数public constructor

public:
 TaskLoggingHelper(Microsoft::Build::Framework::ITask ^ taskInstance);
public TaskLoggingHelper (Microsoft.Build.Framework.ITask taskInstance);
new Microsoft.Build.Utilities.TaskLoggingHelper : Microsoft.Build.Framework.ITask -> Microsoft.Build.Utilities.TaskLoggingHelper
Public Sub New (taskInstance As ITask)

参数

taskInstance
ITask

包含此类实例的任务task containing an instance of this class

适用于

产品 Introduced

TaskLoggingHelper(IBuildEngine, String)

有助于任务工厂记录消息的公共构造函数。Public constructor which can be used by task factories to assist them in logging messages.

public:
 TaskLoggingHelper(Microsoft::Build::Framework::IBuildEngine ^ buildEngine, System::String ^ taskName);
public TaskLoggingHelper (Microsoft.Build.Framework.IBuildEngine buildEngine, string taskName);
new Microsoft.Build.Utilities.TaskLoggingHelper : Microsoft.Build.Framework.IBuildEngine * string -> Microsoft.Build.Utilities.TaskLoggingHelper
Public Sub New (buildEngine As IBuildEngine, taskName As String)

参数

buildEngine
IBuildEngine

生成引擎。The build engine.

taskName
String

任务名。The task name.

适用于

产品 Introduced