Partager via


ScheduledJobTrigger.CreateDailyTrigger Method

Definition

Creates a daily ScheduledJobTrigger object.

public static Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger CreateDailyTrigger (DateTime time, int interval, TimeSpan delay, int id, bool enabled);
static member CreateDailyTrigger : DateTime * int * TimeSpan * int * bool -> Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger
Public Shared Function CreateDailyTrigger (time As DateTime, interval As Integer, delay As TimeSpan, id As Integer, enabled As Boolean) As ScheduledJobTrigger

Parameters

time
DateTime

Time of day when trigger activates

interval
Int32

Days interval for trigger activation

delay
TimeSpan

Random delay

id
Int32

Trigger Id

enabled
Boolean

Trigger enabled state

Returns

ScheduledJobTrigger

Applies to