System.OutOfMemoryException Class
Represents the error that occurs when insufficient memory prevents the current memory allocation from succeeding.

See Also: OutOfMemoryException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class OutOfMemoryException : SystemException

Remarks

Note:

The following CIL instructions throw OutOfMemoryException:

  • box
  • newarr
  • newobj

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0