CogGenTLAccess SetFeature Method Cognex VisionPro 9.8
Write the feature identified by node. Works with any data type.

Namespace: Cognex.VisionPro.GenTL.Implementation.Internal
Assembly: Cognex.VisionPro.GenTL (in Cognex.VisionPro.GenTL.dll) Version: 75.1.0.0
Syntax

public virtual 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.

Implements

ICogGenTLAccess SetFeature(String, String)
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