Write the feature identified by node. Works with any data type.
Namespace: Cognex.VisionPro.GenTL.Implementation.InternalAssembly: Cognex.VisionPro.GenTL (in Cognex.VisionPro.GenTL.dll) Version: 75.1.0.0
public virtual void SetFeature(
string node,
string value
)
public virtual void SetFeature(
string node,
string value
)
Public Overridable Sub SetFeature (
node As String,
value As String
)
Public Overridable Sub SetFeature (
node As String,
value As String
)
public:
virtual void SetFeature(
String^ node,
String^ value
)
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)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.