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 cannot be converted to Int64 using ToInt64(object).
Declaration
public long GetInt64(string property, long defaultValue = 0)Parameters
| Type | Name | Description |
|---|---|---|
| string | property | The name of a logging property. |
| long | defaultValue | The default value to return if the property does not exist. |
Returns
| Type | Description |
|---|---|
| long |