Process.GetCurrentProcess.Kill ... [英] Process.GetCurrentProcess.Kill...

查看:351
本文介绍了Process.GetCurrentProcess.Kill ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

In Process.GetCurrentProcess.Kill()与End.
什么对用户更好,为什么?
请指导这些吗?

问候,
Itz.Irshad

Hi Guys,

In Process.GetCurrentProcess.Kill() vs. End
What is better to user and why ?
Please, guide about these ?

Regards,
Itz.Irshad

推荐答案

因为Kill可能无法让您有机会在从内存中强行删除应用程序之前清理所有资源.

如果有人告诉您,使用Kill结束自己的过程是一个可行的选择,那么您就不应该再听那个人的话.
Because Kill may not give you the opportunity to clean up all of your resources before your app is forcefully removed from memory.

If someone told you that using Kill to end your own process was a viable option, you shouldn''t listen to that person anymore.


这篇关于Process.GetCurrentProcess.Kill ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆