网站建设中,.NET程序设计时判断执行状态

public static bool IsAlreayRunning()
{
string currentProcessName = Process.GetCurrentProcess().ProcessName;
Process[] processNamesCoolection = Process.GetProcessesByName(currentProcessName);
if (processNamesCoolection.Length > 1)
{
return true;
}
else
{
return false;
}

}


文章题目:网站建设中,.NET程序设计时判断执行状态
文章出自:http://scpengxi.com/view/40005.html