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)

abstract OnSessionChange : 
        changeDescription:SessionChangeDescription -> unit
override OnSessionChange : 
        changeDescription:SessionChangeDescription -> unit

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: