共用方式為


RestartComputerCommand.Timeout Property

Definition

Specify the Timeout parameter. Negative value indicates wait infinitely. Positive value indicates the seconds to wait before timeout.

public:
 property int Timeout { int get(); void set(int value); };
public:
 property int Timeout { int get(); void set(int value); };
public int Timeout { get; set; }
[System.Management.Automation.Alias(new System.String[] { "TimeoutSec" })]
[System.Management.Automation.Parameter(ParameterSetName="DefaultSet")]
[System.Management.Automation.ValidateRange(-1, 2147483647)]
public int Timeout { get; set; }
member this.Timeout : int with get, set
[<System.Management.Automation.Alias(new System.String[] { "TimeoutSec" })>]
[<System.Management.Automation.Parameter(ParameterSetName="DefaultSet")>]
[<System.Management.Automation.ValidateRange(-1, 2147483647)>]
member this.Timeout : int with get, set
Public Property Timeout As Integer

Property Value

Attributes

Applies to