Device.DeviceReset Event

Language:

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

Definition

Visual Basic Public Event DeviceReset As EventHandler
C# public event EventHandler DeviceReset;
C++ public:
event EventHandlerDeviceReset;
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);


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center