ScheduledJobTrigger.CreateWeeklyTrigger 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 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