Method GetLong
GetLong(String, Int64)
Retrieves the long value of a corresponding key from the remote service, if one exists.
Declaration
public long GetLong(string key, long defaultValue = 0L)
Parameters
Type | Name | Description |
---|---|---|
String | key | The key identifying the corresponding setting. |
Int64 | defaultValue | The default value to use if the specified key cannot be found or is unavailable. |
Returns
Type | Description |
---|---|
Int64 | A long representation of the key from the remote service, if one exists. If one does not exist, the defaultValue is returned (0L if none is supplied.) |