ServiceBaseOnSessionChange Method
 

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
)
protected:
virtual void OnSessionChange(
	SessionChangeDescription changeDescription
)
abstract OnSessionChange : 
        changeDescription:SessionChangeDescription -> unit
override OnSessionChange : 
        changeDescription:SessionChangeDescription -> unit
Protected Overridable Sub OnSessionChange (
	changeDescription As SessionChangeDescription
)

Parameters

changeDescription
Type:

A structure that identifies the change type.

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

.NET Framework
Available since 2.0
Return to top