ISessionStateChangeTrigger interface (taskschd.h)

Triggers tasks for console connect or disconnect, remote connect or disconnect, or workstation lock or unlock notifications.

Inheritance

The ISessionStateChangeTrigger interface inherits from the ITrigger interface.

Methods

The ISessionStateChangeTrigger interface has these methods.

 
ISessionStateChangeTrigger::get_Delay

Gets or sets a value that indicates how long of a delay takes place before a task is started after a Terminal Server session state change is detected. (ISessionStateChangeTrigger.get_Delay)
ISessionStateChangeTrigger::get_StateChange

Gets or sets the kind of Terminal Server session change that would trigger a task launch. (Get)
ISessionStateChangeTrigger::get_UserId

Gets or sets the user for the Terminal Server session. When a session state change is detected for this user, a task is started. (Get)
ISessionStateChangeTrigger::put_Delay

Gets or sets a value that indicates how long of a delay takes place before a task is started after a Terminal Server session state change is detected. (ISessionStateChangeTrigger.put_Delay)
ISessionStateChangeTrigger::put_StateChange

Gets or sets the kind of Terminal Server session change that would trigger a task launch. (Put)
ISessionStateChangeTrigger::put_UserId

Gets or sets the user for the Terminal Server session. When a session state change is detected for this user, a task is started. (Put)

Remarks

When reading or writing your own XML for a task, a session state change trigger is specified using the SessionStateChangeTrigger element of the Task Scheduler schema.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header taskschd.h

See also

ITrigger

ITriggerCollection

ITriggerCollection::Create