Name

OutOfMemoryException

Synopsis

This exception indicates that the .NET runtime has exhausted all available memory and usually means the CLR is in deep danger of dying altogether.

public class OutOfMemoryException : SystemException {
// Public Constructors
   public OutOfMemoryException( );
   public OutOfMemoryException(string message);
   public OutOfMemoryException(string message, Exception innerException);
// Protected Constructors
   protected OutOfMemoryException(System.Runtime.Serialization.SerializationInfo info,
        System.Runtime.Serialization.StreamingContext context);
}

Hierarchy

Object Exception(System.Runtime.Serialization.ISerializable) SystemException OutOfMemoryException

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.