CogIODiscreteElement Constructor (Int32, String, Boolean)Cognex VisionPro
Constructor.

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 CogIODiscreteElement(
	int line,
	string property,
	bool treatWarningAsReject
)

Parameters

line
Type: System Int32
A discrete I/O line number
property
Type: System String
A tool's property that produces either a boolean or CogToolResultConstants
treatWarningAsReject
Type: System Boolean
When this is set to true and the result is Warning, it is treated as Reject
See Also