Click or drag to resize

CacheTKey, TValueAdd Method

Adds the specified key and value to the dictionary. If the cache has reached its capacity oldest element will be removed automatically

Namespace: Lextm.SharpSnmpLib.Security
Assembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntax
public void Add(
	TKey key,
	TValue value
)

Parameters

key  TKey
The key of the element to add.
value  TValue
The value of the element to add.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null
ArgumentExceptionAn element with the same key already exists in the Cache
See Also