Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

Commented Unassigned: Windows 10 & RegistrationTrigger [12139]

$
0
0
When attempting to register a RegistrationTrigger on Windows 10 (latest preview build) the wrapper (v2.3.4) blows up and throws the following exception:

Microsoft.Win32.TaskScheduler.NotV1SupportedException occurred

```
var oneTimeTrigger = (RegistrationTrigger)taskDefinition.Triggers.Add(new RegistrationTrigger());
oneTimeTrigger.Delay = TimeSpan.FromSeconds(5);
```
Comments: ** Comment from web user: petersunde **

Temporary workaround:

```
var oneTimeTrigger = (TimeTrigger)taskDefinition.Triggers.Add(new TimeTrigger());
oneTimeTrigger.StartBoundary = DateTime.Now.AddSeconds(5);
```


Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>