Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

OutOfMemoryException Constructor

.NET Framework 1.1

Initializes a new instance of the OutOfMemoryException class.

Overload List

Initializes a new instance of the OutOfMemoryException class.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public OutOfMemoryException();
[C++] public: OutOfMemoryException();
[JScript] public function OutOfMemoryException();

Initializes a new instance of the OutOfMemoryException class with a specified error message.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public OutOfMemoryException(string);
[C++] public: OutOfMemoryException(String*);
[JScript] public function OutOfMemoryException(String);

Initializes a new instance of the OutOfMemoryException class with serialized data.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected OutOfMemoryException(SerializationInfo, StreamingContext);
[C++] protected: OutOfMemoryException(SerializationInfo*, StreamingContext);
[JScript] protected function OutOfMemoryException(SerializationInfo, StreamingContext);

Initializes a new instance of the OutOfMemoryException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public OutOfMemoryException(string, Exception);
[C++] public: OutOfMemoryException(String*, Exception*);
[JScript] public function OutOfMemoryException(String, Exception);

See Also

OutOfMemoryException Class | OutOfMemoryException Members | System Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.