Method CheckKeyExistsAsync
- Namespace
- WhalesSecret.TradeScriptLib.API
- Assembly
- WhalesSecret.TradeScriptLib.dll
CheckKeyExistsAsync(byte[])
Checks whether the persistent script storage contains any value for the given key.
Task<bool> CheckKeyExistsAsync(byte[] key)
Parameters
key
byte[]Key which is checked.
Returns
Exceptions
- DatabaseErrorException
Thrown if a database error occurred.
- InvalidArgumentException
Thrown if
key
isnull
.
CheckKeyExistsAsync(string)
Checks whether the persistent script storage contains any value for the given key.
Task<bool> CheckKeyExistsAsync(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
.