ThrowHelper.ThrowTimeoutException Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ThrowTimeoutException(String, Exception) |
Throws a new TimeoutException. |
ThrowTimeoutException(String) |
Throws a new TimeoutException. |
ThrowTimeoutException() |
Throws a new TimeoutException. |
ThrowTimeoutException<T>() |
Throws a new TimeoutException. |
ThrowTimeoutException<T>(String) |
Throws a new TimeoutException. |
ThrowTimeoutException<T>(String, Exception) |
Throws a new TimeoutException. |
ThrowTimeoutException(String, Exception)
Throws a new TimeoutException.
public static void ThrowTimeoutException (string? message, Exception? innerException);
static member ThrowTimeoutException : string * Exception -> unit
Public Shared Sub ThrowTimeoutException (message As String, innerException As Exception)
Parameters
- message
- String
The message to include in the exception.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowTimeoutException(String)
Throws a new TimeoutException.
public static void ThrowTimeoutException (string? message);
static member ThrowTimeoutException : string -> unit
Public Shared Sub ThrowTimeoutException (message As String)
Parameters
- message
- String
The message to include in the exception.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowTimeoutException()
Throws a new TimeoutException.
public static void ThrowTimeoutException ();
static member ThrowTimeoutException : unit -> unit
Public Shared Sub ThrowTimeoutException ()
Exceptions
Thrown with no parameters.
Applies to
ThrowTimeoutException<T>()
Throws a new TimeoutException.
public static T ThrowTimeoutException<T> ();
static member ThrowTimeoutException : unit -> 'T
Public Shared Function ThrowTimeoutException(Of T) () As T
Type Parameters
- T
The type of expected result.
Returns
This method always throws, so it actually never returns a value.
Exceptions
Thrown with no parameters.
Applies to
ThrowTimeoutException<T>(String)
Throws a new TimeoutException.
public static T ThrowTimeoutException<T> (string? message);
static member ThrowTimeoutException : string -> 'T
Public Shared Function ThrowTimeoutException(Of T) (message As String) As T
Type Parameters
- T
The type of expected result.
Parameters
- message
- String
The message to include in the exception.
Returns
This method always throws, so it actually never returns a value.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowTimeoutException<T>(String, Exception)
Throws a new TimeoutException.
public static T ThrowTimeoutException<T> (string? message, Exception? innerException);
static member ThrowTimeoutException : string * Exception -> 'T
Public Shared Function ThrowTimeoutException(Of T) (message As String, innerException As Exception) As T
Type Parameters
- T
The type of expected result.
Parameters
- message
- String
The message to include in the exception.
Returns
This method always throws, so it actually never returns a value.
Exceptions
Thrown with the specified parameter.