VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / DeviceCollection Class / GetDevice Method
The zero-based index of the device.




In This Topic
    GetDevice Method (DeviceCollection)
    In This Topic
    Returns the device at the specified index.
    Syntax
    'Declaration
     
    Public Function GetDevice( _
       ByVal index As Integer _
    ) As Device
    'Usage
     
    Dim instance As DeviceCollection
    Dim index As Integer
    Dim value As Device
     
    value = instance.GetDevice(index)
    public Device GetDevice( 
       int index
    )
    public: Device* GetDevice( 
       int index
    ) 
    public:
    Device^ 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: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also