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