The OnDeviceEvent Event is available in LEADTOOLS LEADTOOLS Document and Medical Imaging and in LEADTOOLS DVD Module toolkits.
The event delegate for writable drive eject and load events.Visual Basic (Declaration) | |
---|---|
Public Event OnDeviceEvent As EventHandler(Of MediaWriterDevNotifyEventArgs) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As MediaWriterDrive Dim handler As EventHandler(Of MediaWriterDevNotifyEventArgs) AddHandler instance.OnDeviceEvent, handler |
C# | |
---|---|
public event EventHandler<MediaWriterDevNotifyEventArgs> OnDeviceEvent |
C++/CLI | |
---|---|
public: event EventHandler<MediaWriterDevNotifyEventArgs^>^ OnDeviceEvent |
The event handler receives an argument of type MediaWriterDevNotifyEventArgs containing data related to this event. The following MediaWriterDevNotifyEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Description | Description string for the related event state. |
State | The current device state for this event. |
For an example, refer to MediaWriterDrive.BurnDisc example.
This event is fired for device events on the MediaWriterDrive object. Supported event states are StateEmpty and StateLoaded.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7