This documentation is archived and is not being maintained.

TimeoutException Class

The exception that is thrown when a specified timeout has expired.

For a list of all members of this type, see TimeoutException Members.


[Visual Basic]
Public Class TimeoutException
   Inherits SystemException
public class TimeoutException : SystemException
public __gc class TimeoutException : public SystemException
class TimeoutException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The TimeoutException class can specify a message to describe the source of the exception. When a method throws this exception, the message is usually "The timeout provided has expired and the operation has not been completed."

This class is used, for example, by the ServiceController class's WaitForStatus member. The operation that can throw the exception is a change of the service's Status property (for example, from Paused to ContinuePending).


Namespace: System.ServiceProcess

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Serviceprocess (in System.Serviceprocess.dll)

See Also

TimeoutException Members | System.ServiceProcess Namespace | WaitForStatus | Status | ServiceController | ServiceControllerStatus