Open sandboxFocus

Method GetInt64

GetInt64(string, long)

Gets the value of a logging property as an Int64, or defaultValue if the property does not exist. Throws an exception if the property exists but can't be converted to Int64 using ToInt64(object).

Declaration
public long GetInt64(string property, long defaultValue = 0)
Parameters
Type Name Description
string property

Name of a logging property.

long defaultValue

The default value to return if the property does not exist.

Returns
Type Description
long