SetJobTriggerCommand.RandomDelay Property

Gets or sets the maximum time of the random delay that can occur after the scheduled start time. This property represents the RandomDelay cmdlet parameter. 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 SetJobTriggerCommand
Dim value As TimeSpan

value = instance.RandomDelay

instance.RandomDelay = value

Syntax

'Declaration
<ParameterAttribute(ParameterSetName:="DefaultParams")> _
Public Property RandomDelay As TimeSpan
[ParameterAttribute(ParameterSetName="DefaultParams")] 
public TimeSpan RandomDelay { get; set; }
[ParameterAttribute(ParameterSetName=L"DefaultParams")] 
public:
property TimeSpan RandomDelay {
    TimeSpan get ();
    void set (TimeSpan value);
}
/** @property */
public TimeSpan get_RandomDelay ()

/** @property */
public void set_RandomDelay (TimeSpan value)
public function get RandomDelay () : TimeSpan

public function set RandomDelay (value : TimeSpan)

Property Value

Returns TimeSpan.

Remarks

The length of the delay is set pseudo-randomly for each start, and it varies from no delay to the time specified by the value of this property. The default value of zero (00:00:00) disables the random delay.

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

SetJobTriggerCommand Class
SetJobTriggerCommand Members
Microsoft.PowerShell.ScheduledJob Namespace