StringDictionary setItem Method Cognex VisionPro 9.23

Replace the element with the specified key. If the key is not a member of this dictionary, insert the key/value pair.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax

public override void setItem(
	string key,
	string value
)

Parameters

key
Type: System String
The key of the item to replace.
value
Type: System String
The object that will replace the item at the specified key.
Remarks

ReplacingItem If key exists, raises before the item is replaced. ReplacedItem If key exists, raises after the item is replaced. InsertingItem If key does NOT exist, raises before the item is inserted. InsertedItem If key does NOT exist, raises after the item is inserted. Changed Raises because this method changes the Count and Item properties. The following StateFlags may be affected:

  • SfCount
  • SfItem

See Also