ApplicationStoppingEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates arguments of the Stopping event.
public ref class ApplicationStoppingEventArgs : EventArgs
public class ApplicationStoppingEventArgs : EventArgs
type ApplicationStoppingEventArgs = class
inherit EventArgs
Public Class ApplicationStoppingEventArgs
Inherits EventArgs
- Inheritance
-
ApplicationStoppingEventArgs
Constructors
ApplicationStoppingEventArgs(Func<Func<Task>,Task>) |
Initializes a new instance of the ApplicationStoppingEventArgs class with the specified runner of asynchronous methods. |
Methods
Run(Func<Task>) |
Runs the specified asynchronous method while preventing the application from exiting. |