ToolTask.HandleTaskExecutionErrors 方法

定义

允许工具处理返回代码。Allows tool to handle the return code. 此方法将仅在 exitCode 为非零的情况下调用。This method will only be called with non-zero exitCode.

protected:
 virtual bool HandleTaskExecutionErrors();
protected virtual bool HandleTaskExecutionErrors ();
abstract member HandleTaskExecutionErrors : unit -> bool
override this.HandleTaskExecutionErrors : unit -> bool
Protected Overridable Function HandleTaskExecutionErrors () As Boolean

返回

Boolean

此方法的返回值将用作任务返回值The return value of this method will be used as the task return value

注解

仅当可执行文件返回非零退出代码时,才调用此方法。This method is called only if the executable file returns a non-zero exit code.

此方法的返回值用作任务的返回值。The return value of this method is used as the return value of the task.

适用于