You may set this property to true to cancel the user request to end the session. This is no guarantee that the session won't end, it is just a request to keep it running.
[Visual Basic] Public Property Cancel As Boolean [C#] public bool Cancel {get; set;} [C++] public: __property bool get_Cancel(); public: __property void set_Cancel(bool); [JScript] public function get Cancel() : Boolean; public function set Cancel(Boolean);
SessionEndingEventArgs Class | SessionEndingEventArgs Members | System.Core Namespace