| Visual Basic (Declaration) | |
|---|---|
Public Event MemoryOverflowed As System.EventHandler(Of MemoryOverflowedEventArgs) | |
| C# | |
|---|---|
public event System.EventHandler<MemoryOverflowedEventArgs> MemoryOverflowed | |
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. |
The user can add his own process in this event handler by setting Handled to True in the event arguments.
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