Get the identifier of the port that is associated with the
specified line on this device.
Namespace: Cognex.VisionPro.QuickBuild.IOAssembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 80.0.0.0 (80.0.0.0)
Syntax
Parameters
- line
- Type: System Int32
The line number. Must be in the range 0 to 23 inclusive.
Return Value
Type: CogIOMCBPortNumberConstantsThe port associated with the specified line. Possible values are CogIOMCBPortNumberConstants.PortA, .PortB, .PortCL, and .PortCH.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If this CogIOMCB object has already been disposed. |
| ArgumentOutOfRangeException | If the line argument is less than zero or greater than 23. |
See Also