PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomLogging­Properties­Expression­ModelGet­Int64
Open sandboxFocus

LoggingPropertiesExpressionModel.GetInt64 Method

GetInt64(String, Int64)

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 = 0L)
Parameters
Type Name Description
String property

Name of a logging property.

System.Int64 defaultValue

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

Returns
Type Description
System.Int64