PersistenceStorageGetInt Method
Get int32 by key.
If the key does not exist or the request fails, the default value will be returned.
If called on the main thread, consider using
GetIntAsync(String, Int32) instead.
Namespace: Alteruna.TrinityAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public int GetInt(
string key,
int defaultValue = 0
)
- key String
-
- defaultValue Int32 (Optional)
-
Int32