Click or drag to resize
Task Scheduler Managed Class Library

TaskRunFlags Enumeration

Defines how a task is run.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
[FlagsAttribute]
public enum TaskRunFlags
Request Example
Members
Member nameValueDescription
NoFlags0The task is run with all flags ignored.
AsSelf1The task is run as the user who is calling the Run method.
IgnoreConstraints2The task is run regardless of constraints such as "do not run on batteries" or "run only if idle".
UseSessionId4The task is run using a terminal server session identifier.
UserSID8The task is run using a security identifier.
See Also