Click or drag to resize
Task Scheduler Managed Class Library

SessionStateChangeTrigger Properties

The SessionStateChangeTrigger type exposes the following members.

Properties
  NameDescription
Public propertyDelay
Gets or sets a value that indicates the amount of time between when the system is booted and when the task is started.
Public propertyEnabled
Gets or sets a Boolean value that indicates whether the trigger is enabled.
(Inherited from Trigger.)
Public propertyEndBoundary
Gets or sets the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated.
Note Note
While the maximum value for this property is MaxValue, the Windows Task Scheduler management application that is part of the OS will fail if this value is greater than December 31, 9998.
(Inherited from Trigger.)
Public propertyExecutionTimeLimit
Gets or sets the maximum amount of time that the task launched by this trigger is allowed to run. Not available with Task Scheduler 1.0.
(Inherited from Trigger.)
Public propertyId
Gets or sets the identifier for the trigger. Cannot set with Task Scheduler 1.0.
(Inherited from Trigger.)
Public propertyRepetition
Gets a RepetitionPattern instance that indicates how often the task is run and how long the repetition pattern is repeated after the task is started.
(Inherited from Trigger.)
Public propertyStartBoundary
Gets or sets the date and time when the trigger is activated.
(Inherited from Trigger.)
Public propertyStateChange
Gets or sets the kind of Terminal Server session change that would trigger a task launch.
Public propertyTriggerType
Gets the type of the trigger.
(Inherited from Trigger.)
Public propertyUserId
Gets or sets the user for the Terminal Server session. When a session state change is detected for this user, a task is started.
Top
See Also