Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ServiceBase::OnSessionChange Method (SessionChangeDescription)

 

Executes when a change event is received from a Terminal Server session.

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

protected:
virtual void OnSessionChange(
	SessionChangeDescription changeDescription
)

Parameters

changeDescription
Type: System.ServiceProcess::SessionChangeDescription

A structure that identifies the change type.

You must set the CanHandleSessionChangeEvent property to true to enable the execution of this method.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft