ExpiringListTAddOrRefresh Method |
Adds the item if it is not already in the list. If it is in the list then its
timestamp is refreshed to the current time.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public bool AddOrRefresh(
T item
)
Public Function AddOrRefresh (
item As T
) As Boolean
public:
bool AddOrRefresh(
T item
)
member AddOrRefresh :
item : 'T -> bool
Parameters
- item
- Type: T
Return Value
Type:
BooleanTrue if the item was already in the list and was just refreshed, false if it had to be added.
See Also