Method DeleteObjectAsync
- Namespace
- WhalesSecret.TradeScriptLib.API
- Assembly
- WhalesSecret.TradeScriptLib.dll
DeleteObjectAsync(byte[])
Deletes an object, identified by the given key, from the persistent storage.
Task<bool> DeleteObjectAsync(byte[] key)
Parameters
key
byte[]Key under which the object is stored.
Returns
Exceptions
- DatabaseErrorException
Thrown if a database error occurred.
- InvalidArgumentException
Thrown if
key
isnull
.
DeleteObjectAsync(string)
Deletes an object, identified by the given key, from the persistent storage.
Task<bool> DeleteObjectAsync(string key)
Parameters
key
stringKey under which the object is stored. They key is interpreted as UTF-8 string and converted to a binary representation.
Returns
Exceptions
- DatabaseErrorException
Thrown if a database error occurred.
- InvalidArgumentException
Thrown if
key
isnull
.