OnSessionChange Method

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


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
© 2015 Microsoft