Compartir a través de


ScheduledJobTrigger.CreateWeeklyTrigger Method

Definition

Creates a weekly ScheduledJobTrigger object.

public static Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger CreateWeeklyTrigger (DateTime time, int interval, System.Collections.Generic.IEnumerable<DayOfWeek> daysOfWeek, TimeSpan delay, int id, bool enabled);
static member CreateWeeklyTrigger : DateTime * int * seq<DayOfWeek> * TimeSpan * int * bool -> Microsoft.PowerShell.ScheduledJob.ScheduledJobTrigger
Public Shared Function CreateWeeklyTrigger (time As DateTime, interval As Integer, daysOfWeek As IEnumerable(Of DayOfWeek), delay As TimeSpan, id As Integer, enabled As Boolean) As ScheduledJobTrigger

Parameters

time
DateTime

Time of day when trigger activates

interval
Int32

Weeks interval for trigger activation

daysOfWeek
IEnumerable<DayOfWeek>

Days of the week for trigger activation

delay
TimeSpan

Random delay

id
Int32

Trigger Id

enabled
Boolean

Trigger enabled state

Returns

ScheduledJobTrigger

Applies to