ScheduledJobTrigger.CreateOnceTrigger Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a one time ScheduledJobTrigger object.
public static Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger CreateOnceTrigger (DateTime time, TimeSpan delay, TimeSpan? repetitionInterval, TimeSpan? repetitionDuration, int id, bool enabled);
static member CreateOnceTrigger : DateTime * TimeSpan * Nullable<TimeSpan> * Nullable<TimeSpan> * int * bool -> Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger
Public Shared Function CreateOnceTrigger (time As DateTime, delay As TimeSpan, repetitionInterval As Nullable(Of TimeSpan), repetitionDuration As Nullable(Of TimeSpan), id As Integer, enabled As Boolean) As ScheduledJobTrigger
Parameters
- time
- DateTime
DateTime when trigger activates
- delay
- TimeSpan
Random delay
- id
- Int32
Trigger Id
- enabled
- Boolean
Trigger enabled state
Returns
ScheduledJobTrigger