SortedTreeNodeBaseTKey, TValueTryInsert2 Method
Inserts the following value to the tree if it does not exist.
Namespace: SnapDB.Snap.TreeAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
protected virtual bool TryInsert2(
TKey key,
TValue value
)
Protected Overridable Function TryInsert2 (
key As TKey,
value As TValue
) As Boolean
protected:
virtual bool TryInsert2(
TKey key,
TValue value
)
function TryInsert2(key, value);
- key TKey
- The key to add.
- value TValue
- The value to add.
Booleantrue if added;
false on a duplicate key error
This is a slower but more complete implementation of
TryInsert(TKey, TValue).
Overriding classes can call this method after implementing their own high speed TryGet method.