Possible Duplicate:
How do I get my C# program to sleep for 50 msec?可能重复:如何让我的C#程序睡眠50毫秒?
Is there any Delay() or sleep () in ASP.net to stop the application for some time...
在ASP.net中是否有任何Delay()或sleep()停止应用程序一段时间...
1 个解决方案
#1
26
System.Threading.Thread.Sleep(numberOfMilisecondsToSleep)
See the documentation for further details. Generally, this isn't something you would have to do in an ASP.NET application very frequently. It will just make the request seem slower.
有关详细信息,请参阅文档。通常,这不是您经常在ASP.NET应用程序中执行的操作。它只会使请求看起来更慢。
#1
26
System.Threading.Thread.Sleep(numberOfMilisecondsToSleep)
See the documentation for further details. Generally, this isn't something you would have to do in an ASP.NET application very frequently. It will just make the request seem slower.
有关详细信息,请参阅文档。通常,这不是您经常在ASP.NET应用程序中执行的操作。它只会使请求看起来更慢。