TaskSettingsDisallowStartIfOnBatteries Property

Gets or sets a Boolean value that indicates that the task will not be started if the computer is running on battery power.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
[DefaultValueAttribute(true)]
public bool DisallowStartIfOnBatteries { get; set; }

Property Value

Boolean

See Also