UserId (sessionStateChangeTriggerType) Element

Contains the user for the Terminal Server session. When a session state change is detected for this user, a task is started.

<xs:element name="UserId"
    type="nonEmptyString"
    maxOccurs="1"
    minOccurs="0"
 />

The UserId element is defined by the sessionStateChangeTriggerType complex type.

Parent element

Element Derived from Description
SessionStateChangeTrigger sessionStateChangeTriggerType Specifies a trigger that starts a task when a Terminal Server session changes state.

Remarks

For C++ development, see UserId Property of ISessionStateChangeTrigger.

For script development, see SessionStateChangeTrigger.UserId.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]