VintaSoft Twain .NET SDK v10.2
Vintasoft.WpfTwain Namespace / DeviceCapabilityCollection Class / IndexOf Method / IndexOf(DeviceCapabilityId) Method
An identifier of capability.




In This Topic
    IndexOf(DeviceCapabilityId) Method
    In This Topic
    Finds the index of capability in this collection by ID of capability.
    Syntax
    'Declaration
     
    Public Overloads Function IndexOf( _
       ByVal id As DeviceCapabilityId _
    ) As Integer
    'Usage
     
    Dim instance As DeviceCapabilityCollection
    Dim id As DeviceCapabilityId
    Dim value As Integer
     
    value = instance.IndexOf(id)
    public int IndexOf( 
       DeviceCapabilityId id
    )
    public: int IndexOf( 
       DeviceCapabilityId id
    ) 
    public:
    int IndexOf( 
       DeviceCapabilityId id
    ) 

    Parameters

    id
    An identifier of capability.

    Return Value

    Index of capability in this collection if capability is found; otherwise, -1.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also