 | TaskRunFlags Enumeration |
Defines how a task is run.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax[FlagsAttribute]
public enum TaskRunFlags
<FlagsAttribute>
Public Enumeration TaskRunFlags
[FlagsAttribute]
public enum class TaskRunFlags
Members
| Member name | Value | Description |
---|
| NoFlags | 0 | The task is run with all flags ignored. |
| AsSelf | 1 | The task is run as the user who is calling the Run method. |
| IgnoreConstraints | 2 | The task is run regardless of constraints such as "do not run on batteries" or "run only if idle". |
| UseSessionId | 4 | The task is run using a terminal server session identifier. |
| UserSID | 8 | The task is run using a security identifier. |
See Also