RestartComputerCommand.AsJob Property
Gets and sets the value of the AsJob parameter of the Restart-Computer cmdlet. This property is introduced in Windows PowerShell 2.0.
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)
Usage
'Usage
Dim instance As RestartComputerCommand
Dim value As SwitchParameter
value = instance.AsJob
instance.AsJob = value
Syntax
'Declaration
<ParameterAttribute(ParameterSetName:="AsJobSet")> _
Public Property AsJob As SwitchParameter
[ParameterAttribute(ParameterSetName="AsJobSet")]
public SwitchParameter AsJob { get; set; }
[ParameterAttribute(ParameterSetName=L"AsJobSet")]
public:
property SwitchParameter AsJob {
SwitchParameter get ();
void set (SwitchParameter value);
}
/** @property */
public SwitchParameter get_AsJob ()
/** @property */
public void set_AsJob (SwitchParameter value)
public function get AsJob () : SwitchParameter
public function set AsJob (value : SwitchParameter)
Property Value
When the parameter is specified, the cmdlet restarts the computer as a background job.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Restart-Computer in the Microsoft TechNet library.
For Help at the command line, type:
get-help restart-computer
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
RestartComputerCommand Class
RestartComputerCommand Members
Microsoft.PowerShell.Commands Namespace