CogToolBlockTerminal Constructor (String, Type, Boolean)Cognex VisionPro 9.8
Creates a new CogToolBlockTerminal with the supplied name and valueType.

Namespace: Cognex.VisionPro.ToolBlock
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 75.1.0.0 (75.1.0.0)
Syntax

public CogToolBlockTerminal(
	string name,
	Type valueType,
	bool initialize
)

Parameters

name
Type: System String
Sets the Name of the new terminal
valueType
Type: System Type
Sets the ValueType of the new terminal
initialize
Type: System Boolean
Dictates if value should be initailized with a default constructed instance of valueType
Exceptions

ExceptionCondition
ArgumentExceptionThrown when name or valueType is null, or if name is not a valid .Net variable name
Remarks

If initialize is true and valueType has a default constructor the terminal will be initialzed to the default value.
See Also