System.OutOfMemoryException Class

The exception that is thrown when there is not enough memory to continue the execution of a program.

See Also: OutOfMemoryException Members

Syntax

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

Remarks

The following Microsoft intermediate (MSIL) instructions throw OutOfMemoryException :

OutOfMemoryException uses the HRESULT COR_E_OUTOFMEMORY, which has the value 0x8007000E.

For a list of initial property values for an instance of OutOfMemoryException, see the OutOfMemoryException.#ctor constructors.

Note:

The value of the inherited Exception.Data property is always null.

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