ThrowHelper.ThrowInsufficientMemoryException 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
ThrowInsufficientMemoryException()
Throws a new InsufficientMemoryException.
public static void ThrowInsufficientMemoryException ();
static member ThrowInsufficientMemoryException : unit -> unit
Public Shared Sub ThrowInsufficientMemoryException ()
Exceptions
Thrown with no parameters.
Applies to
ThrowInsufficientMemoryException(String)
Throws a new InsufficientMemoryException.
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)
Throws a new InsufficientMemoryException.
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.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowInsufficientMemoryException<T>(String, Exception)
Throws a new InsufficientMemoryException.
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.
Returns
This method always throws, so it actually never returns a value.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowInsufficientMemoryException<T>(String)
Throws a new InsufficientMemoryException.
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
This method always throws, so it actually never returns a value.
Exceptions
Thrown with the specified parameter.
Applies to
ThrowInsufficientMemoryException<T>()
Throws a new InsufficientMemoryException.
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
This method always throws, so it actually never returns a value.
Exceptions
Thrown with no parameters.