Occurs when the MemoryOverflowed exception is fired.
Syntax
| Visual Basic (Declaration) | |
|---|
Event MemoryOverflowed As System.EventHandler(Of MemoryOverflowedEventArgs) |
| C# | |
|---|
event System.EventHandler<MemoryOverflowedEventArgs> MemoryOverflowed |
Event Data
The event handler receives an argument of type MemoryOverflowedEventArgs containing data related to this event. The following MemoryOverflowedEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Handled | Gets or sets a tag that determines whether the OutOfMemory exception is handled or not. When set to True, the exception is not thrown. Otherwise, the exception dialog appears. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also