SessionEndingEventArgs

SessionEndingEventArgs

Microsoft.Win32 (system.dll) class

This class is a custom System.EventArgs object for the SystemEvents.SessionEnding delegate. It provides additional information to your event handler about why the session is ending, and allows you to request that the session continue, by setting the Cancel property to true . Note that this is only a request, and you may not always be able to successfully cancel a shutdown operation.

 public class  SessionEndingEventArgs  : EventArgs {  // Public Constructors  public  SessionEndingEventArgs  (SessionEndReasons   reason   );  // Public Instance Properties  public bool  Cancel  {set; get; }    public SessionEndReasons  Reason  {get; } } 

Hierarchy

System.Object System.EventArgs SessionEndingEventArgs

Passed To

SessionEndingEventHandler.{BeginInvoke( ) , Invoke( )}



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net