Method EnumerateDevices
EnumerateDevices(out String[], out Int32, FilterDeviceKind)
Searches for signature devices and returns their identifiers.
Declaration
Error EnumerateDevices(out string[] deviceNames, out int count, FilterDeviceKind DeviceFilter = FilterDeviceKind.dkStepOver)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | deviceNames | Contains names of the available signature devices. Null in case of error. |
System.Int32 | count | = padStrings.Count |
FilterDeviceKind | DeviceFilter | The device filter restricts the search to certain models or manufacturers. |
Returns
Type | Description |
---|---|
Error | Error |
Remarks
The identifiers returned are to be used in conjunction with SetDevice(String)
Examples
This example searches for StepOver signature pads, and selects the first from the list.
C#
error = driver.EnumerateDevices(out string[] padStrings, out int count, FilterDeviceKind.dkNoDevice);
error = driver.SetDevice(padStrings.FirstOrDefault());
if (Error.SUCCESS != error)
{
//handle error
}
VB.NET
Dim padStrings As String()
r = driver.DeviceSearch(padStrings, 0, FilterDeviceKind.dkStepOver)
r = driver.SetDevice(padStrings.FirstOrDefault())
If(r <> [Error].SUCCESS) Then
'handle error
End If