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



The EraseDisc Method is available in LEADTOOLS LEADTOOLS Document and Medical Imaging and in LEADTOOLS DVD Module toolkits.

Erases the data from the currently loaded rewritable disc, if possible.

Syntax

Visual Basic (Declaration) 
Public Sub EraseDisc() 
Visual Basic (Usage)Copy Code
Dim instance As MediaWriterDrive
 
instance.EraseDisc()
C# 
public void EraseDisc()
C++/CLI 
public:
void EraseDisc(); 

Remarks

The media in the drive should be of a type rewriteable to allow this operation. To retrieve the type of the media in the drive, check the MediaWriterDrive.CurrentDiscType property. If an error occurs a Win32Exception will be thrown. Please Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

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