ScheduledJobOptions.StopIfGoingOnBatteries Property     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stop task if computer is going on batteries.
public bool StopIfGoingOnBatteries { get; set; }member this.StopIfGoingOnBatteries : bool with get, setPublic Property StopIfGoingOnBatteries As Boolean