Share via


InvokeCommandCommand.AsJob Property

Definition

Specifies if the cmdlet needs to be run asynchronously.

public:
 property System::Management::Automation::SwitchParameter AsJob { System::Management::Automation::SwitchParameter get(); void set(System::Management::Automation::SwitchParameter value); };
public System.Management.Automation.SwitchParameter AsJob { get; set; }
[System.Management.Automation.Parameter(ParameterSetName="ComputerName")]
[System.Management.Automation.Parameter(ParameterSetName="ContainerId")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathComputerName")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathContainerId")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathRunspace")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathSSHHost")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathSSHHostHash")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathUri")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathVMId")]
[System.Management.Automation.Parameter(ParameterSetName="FilePathVMName")]
[System.Management.Automation.Parameter(ParameterSetName="Session")]
[System.Management.Automation.Parameter(ParameterSetName="SSHHost")]
[System.Management.Automation.Parameter(ParameterSetName="SSHHostHashParam")]
[System.Management.Automation.Parameter(ParameterSetName="Uri")]
[System.Management.Automation.Parameter(ParameterSetName="VMId")]
[System.Management.Automation.Parameter(ParameterSetName="VMName")]
public System.Management.Automation.SwitchParameter AsJob { get; set; }
member this.AsJob : System.Management.Automation.SwitchParameter with get, set
[<System.Management.Automation.Parameter(ParameterSetName="ComputerName")>]
[<System.Management.Automation.Parameter(ParameterSetName="ContainerId")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathComputerName")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathContainerId")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathRunspace")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathSSHHost")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathSSHHostHash")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathUri")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathVMId")>]
[<System.Management.Automation.Parameter(ParameterSetName="FilePathVMName")>]
[<System.Management.Automation.Parameter(ParameterSetName="Session")>]
[<System.Management.Automation.Parameter(ParameterSetName="SSHHost")>]
[<System.Management.Automation.Parameter(ParameterSetName="SSHHostHashParam")>]
[<System.Management.Automation.Parameter(ParameterSetName="Uri")>]
[<System.Management.Automation.Parameter(ParameterSetName="VMId")>]
[<System.Management.Automation.Parameter(ParameterSetName="VMName")>]
member this.AsJob : System.Management.Automation.SwitchParameter with get, set
Public Property AsJob As SwitchParameter

Property Value

Attributes

Applies to