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



The EraseDisc Method is available in LEADTOOLS Document and Medical Imaging 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 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