SessionStateChangeTrigger (triggerGroup) Element
Specifies a trigger that starts a task when a Terminal Server session changes state.
<xs:element name="SessionStateChangeTrigger"
type="sessionStateChangeTriggerType"
/>
The SessionStateChangeTrigger element is defined by the triggerGroup .
Parent element
Element | Derived from | Description |
---|---|---|
Triggers | triggersType | Specifies the triggers that start the task. |
Child elements
Element | Type | Description |
---|---|---|
Delay | duration | Specifies a value that indicates the length of the delay before a task is started when a Terminal Server session state change is detected. |
StateChange | sessionStateChangeType | Specifies the kind of Terminal Server session change that would trigger a task launch. |
UserId | nonEmptyString | Specifies the user for the Terminal Server session. When a session state change is detected for this user, a task is started. |
Remarks
For scripting development, a session state change trigger is specified using the SessionStateChangeTrigger object.
For C++ development, a session state change trigger is specified using the ISessionStateChangeTrigger interface.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |