日期:2014-05-17 浏览次数:20466 次
[WebMethod]
public string getInfo()
{
System.Threading.ThreadStart start = new System.Threading.ThreadStart(test);
System.Threading.Thread th = new System.Threading.Thread(start);
th.ApartmentState = System.Threading.ApartmentState.STA;
th.Start();
return obj;
}
void test()
{
string result=DateTime.Now.ToString();//详细代码实现
}