ScheduledJobOptionCmdletBase.ContinueIfGoingOnBattery Property

Gets or sets the state of the ContinueIfGoingOnBattery cmdlet parameter, which causes a scheduled job to continue running even if the computer switches to battery power. This SDK programming element is introduced in Windows PowerShell 3.0.

Namespace: Microsoft.PowerShell.ScheduledJob
Assembly: Microsoft.PowerShell.ScheduledJob (in Microsoft.PowerShell.ScheduledJob.dll)

Usage

'Usage
Dim instance As ScheduledJobOptionCmdletBase
Dim value As SwitchParameter

value = instance.ContinueIfGoingOnBattery

instance.ContinueIfGoingOnBattery = value

Syntax

'Declaration
<ParameterAttribute(ParameterSetName:="Options")> _
Public Property ContinueIfGoingOnBattery As SwitchParameter
[ParameterAttribute(ParameterSetName="Options")] 
public SwitchParameter ContinueIfGoingOnBattery { get; set; }
[ParameterAttribute(ParameterSetName=L"Options")] 
public:
property SwitchParameter ContinueIfGoingOnBattery {
    SwitchParameter get ();
    void set (SwitchParameter value);
}
/** @property */
public SwitchParameter get_ContinueIfGoingOnBattery ()

/** @property */
public void set_ContinueIfGoingOnBattery (SwitchParameter value)
public function get ContinueIfGoingOnBattery () : SwitchParameter

public function set ContinueIfGoingOnBattery (value : SwitchParameter)

Property Value

Returns SwitchParameter.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

ScheduledJobOptionCmdletBase Class
ScheduledJobOptionCmdletBase Members
Microsoft.PowerShell.ScheduledJob Namespace