VintaSoft Twain .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Twain Namespace / DeviceManager Class / DefaultDevice Property
Syntax Exceptions Requirements SeeAlso
In This Topic
    DefaultDevice Property (DeviceManager)
    In This Topic
    Gets the default TWAIN device.
    Syntax
    'Declaration
    
    <BrowsableAttribute(False)>
    <ReadOnlyAttribute(True)>
    Public ReadOnly Property DefaultDevice As Device
    
    
    [Browsable(False)]
    [ReadOnly(True)]
    public Device DefaultDevice { get; }
    
    
    [Browsable(False)]
    [ReadOnly(True)]
    public: __property Device* get_DefaultDevice();
    
    
    
    [Browsable(False)]
    [ReadOnly(True)]
    public:
    property Device^ DefaultDevice { Device^ get(); }

    Return Value

    Device object if device manager has default device; null if default device is not found.
    Exceptions
    ExceptionDescription
    Thrown if TWAIN device manager is not open.
    Thrown if object is disposed.
    Thrown if .NET debugger is used and the function evaluation requires all threads to run.
    Requirements

    Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also