This documentation is archived and is not being maintained.

Thread.Sleep Method

Blocks the current thread for the specified number of milliseconds.

Name Description
Thread.Sleep (Int32) Suspends the current thread for a specified time.

Supported by the .NET Compact Framework.

Thread.Sleep (TimeSpan) Blocks the current thread for a specified time.
Show: