LEADTOOLS Multimedia (Leadtools.MediaWriter assembly) Send comments on this topic. | Main Raster Introduction | Multimedia Introduction | Help Version 17.0.3.24
OnDeviceEvent Event
See Also 
Leadtools.MediaWriter Namespace > MediaWriterDrive Class : OnDeviceEvent Event



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.

Syntax

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

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.

Example

For an example, refer to MediaWriterDrive.BurnDisc example.

Remarks

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.MediaWriter requires a Document or Medical or Multimedia toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical/Multimedia features