简体   繁体   中英

Is the windows 8.1 tablet supports the Task Scheduler?

The bellow c# code is to create a new task in windows task Sheduler, Is this supports in 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;

A windows store apps runs on a Windows tablet the same way it would on a Windows PC. If your task scheduler works after compiling the code with Visual Studio then it will work the same way on a tablet.

The Task Scheduler API such as ITaskService are not supported in Windows Store apps. Windows Store apps are specifically blocked from making system-wide changes. You will need to create your task from a desktop app.

You can run desktop apps on Windows 8.1 tablets. Windows 8.1 tablets run the same versions of Windows 8.1 as desktop computers run.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM