CogIODeviceList GetDiscreteDevice Method (Int32)Cognex VisionPro
Returns the discrete device object indexed by listIndex

Namespace: Cognex.VisionPro.QuickBuild.IO
Assembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax

public CogIODiscreteDevice GetDiscreteDevice(
	int listIndex
)

Parameters

listIndex
Type: System Int32
ArrayList index number. Starts from 0.

Return Value

Type: CogIODiscreteDevice
Returns the discrete device object indexed by listIndex. Returns null if the match cannot be found.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException If listIndex is out of range.
See Also