2014年2月19日 星期三

C# 強制關閉 Process

Process.GetCurrentProcess().Kill();
一行以蔽之。

參考 Process 類別(System.Diagnostics) - MSDN - Microsoft

沒有留言:

張貼留言