MetalamaAPI documentationFlashtrace APIFlashtrace.​RecordsLogging­Properties­Expression­ModelGet­Int32
Open sandboxFocus

LoggingPropertiesExpressionModel.GetInt32 Method

GetInt32(String, Int32)

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

Declaration
public int GetInt32(string property, int defaultValue = 0)
Parameters
Type Name Description
String property

Name of a logging property.

Int32 defaultValue

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

Returns
Type Description
Int32