Thread.Sleep Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Suspends the current thread for the specified amount of time.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticSleep(Int32)

Suspends the current thread for the specified number of milliseconds.

System_CAPS_pubmethodSystem_CAPS_staticSleep(TimeSpan)

Suspends the current thread for the specified amount of time.

Return to top
Show: