ICogGenTLAccess SetFeature Method Cognex VisionPro 9.22 SR1
Write the feature identified by node. Works with any data type.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.1.0.0
Syntax

void SetFeature(
	string node,
	string value
)

Parameters

node
Type: System String
The name of the feature node to be processed.
value
Type: System String
The value to be written to the feature node. This string must contain data that matches the data type of the feature node.
Remarks

You must set the contents of the value string to match the data type of the feature node. For an Enum node value must be one of the valid enum values. For a Boolean node value must be either '1' (True), or '0' (False). For an Integer node value must be a properly formatted integer, and for a Float node it must be a properly formatted floating point number.

You should not attempt to call the SetFeature  method on a Command node. It is an error to set or get the value of a Command node.

See Also