Share via


Device.DeviceReset Event (Microsoft.DirectX.Direct3D)

Occurs after a device is reset, allowing an application to re-create all Pool.Default resources.

Definition

Visual Basic Public Event DeviceReset As EventHandlerLeave Site
C# public event EventHandlerLeave Site DeviceReset;
C++ public:
event EventHandlerLeave SiteDeviceReset;
JScript In JScript, you can use events, but you cannot define your own.

Remarks

To add an event handler that listens for a Device.DeviceReset event, use the following C# code.

[C#]device.DeviceReset += new System.EventHandler(this.DeviceResetEventHandler);