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