我想创建一个应用程序,当运行该应用程序的系统将要关闭时,该应用程序将发送邮件 [英] I want create a application which sends a mail when that system on which app is running is going to shutdown
本文介绍了我想创建一个应用程序,当运行该应用程序的系统将要关闭时,该应用程序将发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个应用程序,当应用程序运行的系统将要关闭时发送邮件。
或者应用程序在最后关闭时自行关闭机器即将停机。
谢谢
我的尝试:
我想创建一个应用程序,当运行应用程序的系统将要关闭时发送邮件。
我已经编写了成功发送邮件的代码,只是想在上述场景中提出想法。
谢谢
I want create a application which sends a mail when that system on which app is running is going to shutdown.
Or application which close itself at the last when machine is going to shutdown.
Thanks
What I have tried:
I want create a application which sends a mail when that system on which app is running is going to shutdown.
I have written code which send mail successfully just want idea on above stated scenario.
Thanks
推荐答案
有几种方法,但我更喜欢同样的活动。
浏览链接:
https:/ /msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.sessionended.aspx [ ^ ]
c# - 如何检测Windows关闭或注销 - 堆栈溢出 [ ^ ]
这篇关于我想创建一个应用程序,当运行该应用程序的系统将要关闭时,该应用程序将发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文