Tries to add the item identified by the provided token.
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxbool TryAdd(
Object token,
TimeSpan time,
Action<Object, TimeSpan> action
)
Parameters
- token Object
- The token to identify the item.
- time TimeSpan
- The due time.
- action ActionObject, TimeSpan
- The action to perform when the due time is reached. 1st parameter is the token, 2nd parameter is the due time.
Return Value
Booleantrue if the item was added; otherwise,
false if an item with the same token already exists.
See Also