ScheduledJobTrigger Class
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.
This class contains parameters used to define how/when a PowerShell job is run via the Windows Task Scheduler (WTS).
[System.Serializable]
public sealed class ScheduledJobTrigger : System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type ScheduledJobTrigger = class
interface ISerializable
Public NotInheritable Class ScheduledJobTrigger
Implements ISerializable
- Inheritance
-
ScheduledJobTrigger
- Attributes
- Implements
Constructors
ScheduledJobTrigger() |
Default constructor. |
Properties
At |
Trigger time. |
DaysOfWeek |
Trigger days of week. |
Enabled |
Defines enabled state of trigger. |
Frequency |
Trigger frequency. |
Id |
Returns the trigger local Id. |
Interval |
Trigger days or weeks interval. |
JobDefinition |
ScheduledJobDefinition object this trigger is associated with. |
RandomDelay |
Trigger random delay. |
RepetitionDuration |
Trigger Once frequency repetition duration. |
RepetitionInterval |
Trigger Once frequency repetition interval. |
User |
Trigger user name. |
Methods
CreateAtLogOnTrigger(String, TimeSpan, Int32, Boolean) |
Creates a trigger that activates after user log on. |
CreateAtStartupTrigger(TimeSpan, Int32, Boolean) |
Creates a trigger that activates after OS boot. |
CreateDailyTrigger(DateTime, Int32, TimeSpan, Int32, Boolean) |
Creates a daily ScheduledJobTrigger object. |
CreateOnceTrigger(DateTime, TimeSpan, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Boolean) |
Creates a one time ScheduledJobTrigger object. |
CreateWeeklyTrigger(DateTime, Int32, IEnumerable<DayOfWeek>, TimeSpan, Int32, Boolean) |
Creates a weekly ScheduledJobTrigger object. |
GetObjectData(SerializationInfo, StreamingContext) |
GetObjectData for ISerializable implementation. |
UpdateJobDefinition() |
Update the associated ScheduledJobDefinition object with the current properties of this object. |