Edit

Share via


ThrowHelper.ThrowInsufficientMemoryException Method

Definition

Overloads

ThrowInsufficientMemoryException()

Throws a new InsufficientMemoryException.

ThrowInsufficientMemoryException(String)

Throws a new InsufficientMemoryException.

ThrowInsufficientMemoryException(String, Exception)

Throws a new InsufficientMemoryException.

ThrowInsufficientMemoryException<T>(String, Exception)

Throws a new InsufficientMemoryException.

ThrowInsufficientMemoryException<T>(String)

Throws a new InsufficientMemoryException.

ThrowInsufficientMemoryException<T>()

Throws a new InsufficientMemoryException.

ThrowInsufficientMemoryException()

public static void ThrowInsufficientMemoryException ();
static member ThrowInsufficientMemoryException : unit -> unit
Public Shared Sub ThrowInsufficientMemoryException ()

Exceptions

Thrown with no parameters.

Applies to

ThrowInsufficientMemoryException(String)

public static void ThrowInsufficientMemoryException (string? message);
static member ThrowInsufficientMemoryException : string -> unit
Public Shared Sub ThrowInsufficientMemoryException (message As String)

Parameters

message
String

The message to include in the exception.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowInsufficientMemoryException(String, Exception)

public static void ThrowInsufficientMemoryException (string? message, Exception? innerException);
static member ThrowInsufficientMemoryException : string * Exception -> unit
Public Shared Sub ThrowInsufficientMemoryException (message As String, innerException As Exception)

Parameters

message
String

The message to include in the exception.

innerException
Exception

The inner Exception to include.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowInsufficientMemoryException<T>(String, Exception)

public static T ThrowInsufficientMemoryException<T> (string? message, Exception? innerException);
static member ThrowInsufficientMemoryException : string * Exception -> 'T
Public Shared Function ThrowInsufficientMemoryException(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.

innerException
Exception

The inner Exception to include.

Returns

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowInsufficientMemoryException<T>(String)

public static T ThrowInsufficientMemoryException<T> (string? message);
static member ThrowInsufficientMemoryException : string -> 'T
Public Shared Function ThrowInsufficientMemoryException(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

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with the specified parameter.

Applies to

ThrowInsufficientMemoryException<T>()

public static T ThrowInsufficientMemoryException<T> ();
static member ThrowInsufficientMemoryException : unit -> 'T
Public Shared Function ThrowInsufficientMemoryException(Of T) () As T

Type Parameters

T

The type of expected result.

Returns

T

This method always throws, so it actually never returns a value.

Exceptions

Thrown with no parameters.

Applies to