[英]Is the windows 8.1 tablet supports the Task Scheduler?
下面的C#代码是在Windows任务Sheduler中创建一个新任务,这在Windows Tablets中支持吗?
ITaskService taskService = new TaskScheduler.TaskScheduler();
taskService.Connect();
ITaskDefinition taskDefinition = taskService.NewTask(0);
taskDefinition.RegistrationInfo.Description = "Testing Task 32";
taskDefinition.RegistrationInfo.Author = "XXX";
taskDefinition.Settings.Enabled = true;
taskDefinition.Settings.Hidden = false;
taskDefinition.Settings.Compatibility = _TASK_COMPATIBILITY.TASK_COMPATIBILITY_V2_1;
Windows应用商店在Windows平板电脑上的运行方式与Windows PC上的运行方式相同。 如果您的任务计划程序在使用Visual Studio编译代码后可以工作,则它将在平板电脑上以相同的方式工作。
Windows Store应用程序不支持Task Scheduler API(例如ITaskService) 。 Windows Store应用特别禁止在系统范围内进行更改。 您将需要从桌面应用程序创建任务。
您可以在Windows 8.1平板电脑上运行桌面应用程序。 Windows 8.1平板电脑与台式计算机运行的Windows 8.1版本相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.