public static bool IsAlreayRunning()
{
string currentProcessName = Process.GetCurrentProcess().ProcessName;
Process[] processNamesCoolection = Process.GetProcessesByName(currentProcessName);
if (processNamesCoolection.Length > 1)
{
return true;
}
else
{
return false;
}
}
分享名称:
网站建设中,.NET程序设计时判断执行状态
URL网址:
http://www.swkodf.com/view/40005.html