OptionConverterToFileSize Method Apache log4net™ SDK Documentation
Parses a file size into a number.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public static long ToFileSize(
	string argValue,
	long defaultValue
)

Parameters

argValue
Type: SystemString
String to parse.
defaultValue
Type: SystemInt64
The default value.

Return Value

Type: Int64
The 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

Reference