UIecBinarySizeToString(String, IFormatProvider) Method

Formats the value of the current UBinarySize instance using the specified format.

Definition

Namespace: Ookii
Assembly: Ookii.BinarySize (in Ookii.BinarySize.dll) Version: 1.2.0+20f0bdf981c7baf115c68ccab612b1a031efcb4d
C#
public string ToString(
	string? format,
	IFormatProvider? formatProvider
)

Parameters

format  String
The format to use, or to use the default format.
formatProvider  IFormatProvider
The provider to use to format the value, or to obtain the numeric format information from the current locale setting of the operating system.

Return Value

String
The value of the current instance in the specified format.

Implements

IFormattableToString(String, IFormatProvider)

Remarks

This method behaves identical to the UBinarySizeToString(String, IFormatProvider) method. Format strings with upper-case unit letters will still use powers of two for SI units; you must use lower-case unit letters to format with powers of ten.

Exceptions

FormatExceptionformat is invalid.

See Also