取得线程
有A,B线程,现在想关掉A,知道A的Name是"aa",要怎么取得A线程? --------------------编程问答-------------------- khjkghk --------------------编程问答-------------------- AppDomain --------------------编程问答-------------------- Thread aaThread = null;
foreach(Thread thread in System.Diagnostics.Process.GetCurrentProcess().Threads)
{
if(thread.Name.Equals("aa"))
{
aaThread = thread;
break;
}
}
if(aaThread!=null)
{
aaThread.Abort();
}
补充:.NET技术 , C#