Leadtools.MediaWriter Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.0.01.14
OnDeviceEvent Event
See Also 
Leadtools.MediaWriter Namespace > MediaWriterDrive Class : OnDeviceEvent Event



The OnDeviceEvent Event is available in LEADTOOLS Document and Medical Imaging 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();

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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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