ServiceBase.OnSessionChange(SessionChangeDescription) Método

Definición

Se ejecuta cuando se recibe un evento de cambio de una sesión de Terminal Server.

protected:
 virtual void OnSessionChange(System::ServiceProcess::SessionChangeDescription changeDescription);
protected virtual void OnSessionChange (System.ServiceProcess.SessionChangeDescription changeDescription);
abstract member OnSessionChange : System.ServiceProcess.SessionChangeDescription -> unit
override this.OnSessionChange : System.ServiceProcess.SessionChangeDescription -> unit
Protected Overridable Sub OnSessionChange (changeDescription As SessionChangeDescription)

Parámetros

changeDescription
SessionChangeDescription

Estructura que identifica el tipo de cambio.

Comentarios

Debe establecer la CanHandleSessionChangeEvent propiedad en true para habilitar la ejecución de este método.

Se aplica a

Consulte también