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



The State Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets the MediaWriterState for the current drive.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property State As MediaWriterState
Visual Basic (Usage)Copy Code
Dim instance As MediaWriterDrive
Dim value As MediaWriterState
 
value = instance.State
C# 
public MediaWriterState State {get;}
C++/CLI 
public:
property MediaWriterState State {
   MediaWriterState get();
}

Return Value

The state for the current drive.

Remarks

This property can be retrieved to examine the current state before a media writer operation. If the calling application does not check this property before using one of the MediaWriterDrive methods, the requested method call may fail. For the list of possible states, see MediaWriterState. The following is a list of all possible operations with the required state for each operation:
OperationRequired State
BurnDiscIdle
TestWriteDiscIdle
EraseDiscIdle
LoadDiscIdle
EjectDiscIdle
CancelAny

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