VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.Sane Namespace / SaneLocalDeviceCollection Class / GetDevice(Int32) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    GetDevice(Int32) Method (SaneLocalDeviceCollection)
    In This Topic
    Returns the device at the specified index.
    Syntax
    'Declaration
    
    Public Function GetDevice( _
    ByVal index
    The zero-based index of the device.
    As Integer _
    ) As SaneLocalDevice
    public SaneLocalDevice GetDevice(
    int index
    )
    public: SaneLocalDevice* GetDevice(
    int index
    )
    public:
    SaneLocalDevice^ GetDevice(
    int index
    )

    Parameters

    index
    The zero-based index of the device.

    Return Value

    The device at the specified index.
    Exceptions
    ExceptionDescription
    index is less than zero or index is equal to or greater than System.Collections.ReadOnlyCollectionBase.Count.
    Requirements

    Target Platforms: .NET 8, .NET 7; .NET 6

    See Also