ExpiringDictionaryTKey, TValueUpsert Method |
Adds or updates an item in the dictionary. If the key is already in use then the value is overwritten
but the timestamp is not refreshed.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public bool Upsert(
TKey key,
TValue value
)
Public Function Upsert (
key As TKey,
value As TValue
) As Boolean
public:
bool Upsert(
TKey key,
TValue value
)
member Upsert :
key : 'TKey *
value : 'TValue -> bool
Parameters
- key
- Type: TKey
- value
- Type: TValue
Return Value
Type:
BooleanTrue if the item existed and was updated, false if it had to be added.
See Also