OnDeviceEvent Event

Summary

The event delegate for writable drive eject and load events.

Syntax
C#
VB
C++
public event EventHandler<MediaWriterDevNotifyEventArgs> OnDeviceEvent 
Public Event OnDeviceEvent As EventHandler(Of MediaWriterDevNotifyEventArgs) 
public: 
event EventHandler<MediaWriterDevNotifyEventArgs^>^ OnDeviceEvent 

Event Data

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.

PropertyDescription
Description Description string for the related event state.
State The current device state for this event.

Remarks

This event is fired for device events on the MediaWriterDrive object. Supported event states are StateEmpty and StateLoaded.

Example

For an example, refer to MediaWriterDrive.BurnDisc example.

Requirements

Target Platforms

Help Version 21.0.2020.8.16
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MediaWriter Assembly