This documentation is archived and is not being maintained.

SessionEndingEventArgs.Cancel Property

Gets or sets a value indicating whether to cancel the user request to end the session.

[Visual Basic]
Public Property Cancel As Boolean
public bool Cancel {get; set;}
public: __property bool get_Cancel();
public: __property void set_Cancel(bool);
public function get Cancel() : Boolean;
public function set Cancel(Boolean);

Property Value

true to cancel the user request to end the session; otherwise, false.


When set to false, this property requests that the session continue to run. It provides no guarantee that the session will not end.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SessionEndingEventArgs Class | SessionEndingEventArgs Members | Microsoft.Win32 Namespace