2019-8-31-How-to-use-code-to-exit-the-application-in-UWP
2024-10-07 16:55:45
title | author | date | CreateTime | categories |
---|---|---|---|---|
How to use code to exit the application in UWP
|
lindexi
|
2019-08-31 16:55:58 +0800
|
2018-06-15 20:30:49 +0800
|
UWP
|
I will tell you how to exit the application in UWP by the code.
We can call some static method to help us to exit the application.
The first method is as this code:
CoreApplication.Exit();
And the other one is
Application.Current.Exit();
If you are making the WPF application that you can use this code to exit the application.
Application.Current.Shutdown();
And
Environment.Exit(0);
If you find any problems, please contact me.
最新文章
- 对hashmap,hashset,hashtable的理解
- 高斯混合模型(GMM)
- JMeter学习-035-JMeter调试工具之二---Debug PostProcessor
- 7.Git的版本退回
- 用markdown学习写出总结
- netfx_NativeCompilation.msi 传说中的 .NET Native 预览版的文件列表
- Angularjs做的一个小页面
- DNS介绍
- 加密算法使用(四):AES的使用
- mac 下 sphinx + mysql + php 实现全文搜索(xampp)(3)sphinx 的配置项解析
- Oracle笔记-表的管理
- JavaScript开发者应懂的33个概念
- Python3 tkinter基础 Scale orient 横竖 resolution单步步长 length 长度 tickinterval 指示刻度
- thinkphp简洁、美观、靠谱的分页类
- oracle 中可以用 case when then else end来处理除数是0的情况
- Mysql连接错误:Mysql Host is blocked because of many connection errors
- 微信公众号 access_token 没有过期 却失效
- 6个监控linux资源的快速工具
- [转]winform CEF
- SecureCRT SSH连接一直提示密码错误