How to use code to exit the application in UWP
code to in The How use application UWP
2023-09-27 14:28:54 时间
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.
我搭建了自己的博客 https://blog.lindexi.com/ 欢迎大家访问,里面有很多新的博客。只有在我看到博客写成熟之后才会放在csdn或博客园,但是一旦发布了就不再更新
如果在博客看到有任何不懂的,欢迎交流,我搭建了 dotnet 职业技术学院 欢迎大家加入
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。欢迎转载、使用、重新发布,但务必保留文章署名林德熙(包含链接:http://blog.csdn.net/lindexi_gd ),不得用于商业目的,基于本文修改后的作品务必以相同的许可发布。如有任何疑问,请与我联系。
相关文章
- horizontal line and right way to code it in html, css
- JavaScript modularity with RequireJS (from spaghetti code to ravioli code)
- keil编译后Program Size: Code=46284 RO-data=988 RW-data=580 ZI-data=1094588
- UVa 10950 - Bad Code
- 代码对比软件——code compare
- NPM的天坑: 解决ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
- Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd'问题解决方法
- Maven-008-Nexus 私服部署发布报错 Failed to deploy artifacts: Failed to transfer file: ... Return code is: 4XX, ReasonPhrase: ... 解决方案
- Code::Blocks + GDAL
- 浅析如何升级vue-cli以及使用npm卸载包时遇到问题:npm ERR! code EEXIST(npm ERR! File exists: D:Programnodejsnode_globalvue-list.cmd - npm ERR! Move it away, and try again.)
- 一些你所不知道的VS Code插件
- MonoDevelop with Visual Studio to Linux and Mac OSX maintaining a single code base for all platforms.
- Polar Code主要研究者的个人主页(持续更新中........)
- Linux 之 Ubuntu 代码开发工具 Visual Studio Code(VSCode) 的安装与一些常用插件配置的简单整理
- ORA-00600: internal error code, arguments: [4194], [53], [41], [], [], [], [], []
- How to fix “HTTP Status Code 505 – HTTP Version Not Supported” error?--转
- java code to byte code--partone--reference
- 【python】报错:SyntaxError: Non-UTF-8 code starting with ‘xd0‘ in file 随手记