Table of Contents

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

Task<bool>

true if the storage contains a value for the given key, false otherwise.

Exceptions

DatabaseErrorException

Thrown if a database error occurred.

InvalidArgumentException

Thrown if key is null.

CheckKeyExistsAsync(string)

Checks whether the persistent script storage contains any value for the given key.

Task<bool> CheckKeyExistsAsync(string key)

Parameters

key string

Key under which the object is stored. They key is interpreted as UTF-8 string and converted to a binary representation.

Returns

Task<bool>

true if the storage contains a value for the given key, false otherwise.

Exceptions

DatabaseErrorException

Thrown if a database error occurred.

InvalidArgumentException

Thrown if key is null.