Click or drag to resize
AB4D logo

DeviceRemovedEventArgs Class

DeviceRemovedEventArgs is used when the DirectX device is removed or reset. The event handler can handle this case with saving the current state of the 3D scene, dispose the current DirectX objects and recreate the 3D scene.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    Ab3d.DirectX.CommonDeviceRemovedEventArgs

Namespace: Ab3d.DirectX.Common
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public class DeviceRemovedEventArgs : EventArgs

The DeviceRemovedEventArgs type exposes the following members.

Constructors
 NameDescription
Public methodDeviceRemovedEventArgs Constructor
Top
Properties
 NameDescription
Public propertyDeviceRemovedReason Reason why the device was removed that is get from calling GetDeviceRemovedReason method.
Public propertyIsHandled When IsHandled is set by the event handler, then the DXScene does not throw an exception as it is considered that the event handler will dispose and recreate the DXScene.
Public propertyMessage Message describes where the device removal happened
Public propertySharpDxException SharpDXException that was thrown when DirectX call was made on a removed device.
Top
See Also