Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IMonthlyTrigger interface

Represents a trigger that starts a job based on a monthly schedule. For example, the task starts on specific days of specific months.

Members

The IMonthlyTrigger interface inherits from ITrigger. IMonthlyTrigger also has these types of members:

Properties

The IMonthlyTrigger interface has these properties.

PropertyAccess typeDescription

DaysOfMonth

Read/write

Gets or sets the days of the month during which the task runs.

Enabled

Read/write

Inherited from the ITrigger interface. Gets or sets a Boolean value that indicates whether the trigger is enabled.

EndBoundary

Read/write

Inherited from the ITrigger interface. Gets or sets the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated.

ExecutionTimeLimit

Read/write

Inherited from the ITrigger interface. Gets or sets the maximum amount of time that the task launched by this trigger is allowed to run.

Id

Read/write

Inherited from the ITrigger interface. Gets or sets the identifier for the trigger.

MonthsOfYear

Read/write

Gets or sets the months of the year during which the task runs.

RandomDelay

Read/write

Gets or sets a delay time that is randomly added to the start time of the trigger.

Repetition

Read/write

Inherited from the ITrigger interface. Gets or sets how often the task is run and how long the repetition pattern is repeated after the task is started.

RunOnLastDayOfMonth

Read/write

Gets or sets a Boolean value that indicates that the task runs on the last day of the month.

StartBoundary

Read/write

Inherited from the ITrigger interface. Gets or sets the date and time when the trigger is activated.

Type

Read-only

Inherited from the ITrigger interface. Gets the type of trigger.

 

Remarks

The time of day that the task is started is set by the StartBoundary property.

When reading or writing your own XML for a task, a monthly trigger is specified using the ScheduleByMonth element of the Task Scheduler schema.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

Task Scheduler Interfaces
Task Scheduler
ITriggerCollection
ITriggerCollection::Create

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.