Click or drag to resize
Task Scheduler Managed Class Library

MonthlyTrigger Constructor

Creates an unbound instance of a MonthlyTrigger.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public MonthlyTrigger(
	int dayOfMonth = 1,
	MonthsOfTheYear monthsOfYear = MonthsOfTheYear.AllMonths
)
Request Example View Source

Parameters

dayOfMonth (Optional)
Type: SystemInt32
The day of the month. This must be a value between 1 and 32. If this value is set to 32, then the RunOnLastDayOfMonth value will be set and no days will be added regardless of the month.
monthsOfYear (Optional)
Type: Microsoft.Win32.TaskSchedulerMonthsOfTheYear
The months of the year.
See Also