CogVisionDataContainer Add Method (String, ICogVisionData)Cognex VisionPro 9.24
Adds to the end of the container a key value pair using the supplied key string and ICogVisionData value.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 91.0.0.0
Syntax

public virtual void Add(
	string key,
	ICogVisionData value
)

Parameters

key
Type: System String
The key string to be used.
value
Type: Cognex.VisionPro ICogVisionData
The ICogVisionData value reference to be used.

Implements

IDictionary TKey, TValue  Add(TKey, TValue)
Exceptions

ExceptionCondition
[System.ArgumentNullException] If the supplied key is null.
[System.ArgumentException] If the supplied key is an empty string.
[System.ArgumentException] If the supplied key already exists within the container.
See Also