要使用TaskService获取正确的任务调度程序的LastTaskResult代码?
使用taskservice
,正在使用各个任务显示计划的任务,LastTaskResult
。在taskService
lastTaskResult
的属性 int ,即,
// Summary:
// Gets the results that were returned the last time the registered task was run.
//
// Remarks:
// The value returned is the last exit code of the last program run via an Microsoft.Win32.TaskScheduler.ExecAction.
public int LastTaskResult { get; }
由于其数据类型为int
,我不是在任务调度程序中获取确切的退出代码,如何获得整个lastaction
结果?
Am displaying the scheduled tasks with the respective tasks and the lastTaskResult
using the taskservice
. In the taskservice
the property of lastTaskResult
is int
, ie
// Summary:
// Gets the results that were returned the last time the registered task was run.
//
// Remarks:
// The value returned is the last exit code of the last program run via an Microsoft.Win32.TaskScheduler.ExecAction.
public int LastTaskResult { get; }
so since its datatype is int
, I'm not getting the exact exit codes as available in the task scheduler,, how can I get the entire lastaction
result?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论