Sleep Class

MSBuild

A task for sleeping for a specified period of time.


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class Sleep
    Inherits Task
C#
public class Sleep : Task
C++
ref class Sleep : Task
J#
public class Sleep extends Task
JScript
public class Sleep extends Task

Example

Causes the build to sleep for 300 milliseconds.

 Copy Code
            <Sleep Milliseconds="300" />
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.Sleep

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.