SortedTreeTKey, TValueTryAdd Method
Attempts to add the provided key/value to the Tree.
Namespace: SnapDB.Snap.TreeAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public bool TryAdd(
TKey key,
TValue value
)
Public Function TryAdd (
key As TKey,
value As TValue
) As Boolean
public:
bool TryAdd(
TKey key,
TValue value
)
function TryAdd(key, value);
- key TKey
- the key to add
- value TValue
- the value to add
Booleanreturns true if successful, false if a duplicate key was found