Parses a file size into a number.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- argValue
- Type: System String
String to parse.
- defaultValue
- Type: System Int64
The default value.
Return Value
Type: Int64The Int64 value of argValue.
Remarks
Parses a file size of the form: number[KB|MB|GB] into a long value. It is scaled with the appropriate multiplier.
defaultValue is returned when argValue cannot be converted to a Int64 value.
See Also