SortedTreeNodeBaseTKey, TValueTryInsert Method

Inserts the following value to the tree if it does not exist.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public virtual bool TryInsert(
	TKey key,
	TValue value
)

Parameters

key  TKey
The key to add
value  TValue
The value to add

Return Value

Boolean
true if added, false on a duplicate key error.

See Also