An application that shuts down when it's waiting for input and then restart it when that input arrives.
等待输入时关闭、输入到达时重启的应用。
In addition, the application can execute specific code when the application shuts down unexpectedly, such as during an unhandled exception.
此外,应用程序还会在应用程序意外关闭时(例如,在未处理的例外状况期间)执行特定的程序码。
This example shows how to persist application-scope properties when an application shuts down, and how to restore application-scope properties when an application is next launch.
这个范例显示如何在应用程序关闭后保存应用程序范围属性,以及如何在下次启动应用程序时还原应用程序范围属性。
应用推荐