Enum.IConvertible.ToSingle(IFormatProvider) Method

Definition

根据基础类型将当前值转换为单精度浮点数。Converts the current value to a single-precision floating-point number based on the underlying type.

 virtual float System.IConvertible.ToSingle(IFormatProvider ^ provider) = IConvertible::ToSingle;
float IConvertible.ToSingle (IFormatProvider provider);
abstract member System.IConvertible.ToSingle : IFormatProvider -> single
override this.System.IConvertible.ToSingle : IFormatProvider -> single
Function ToSingle (provider As IFormatProvider) As Single Implements IConvertible.ToSingle

Parameters

provider
IFormatProvider

一个提供区域性特定的格式设置信息的对象。An object that supplies culture-specific formatting information.

Returns

Single

此成员总是引发异常。This member always throws an exception.

Implements

Exceptions

在所有情况下。In all cases.

Remarks

当前未实现。Currently not implemented. 将始终引发异常。Always throws an exception.

Applies to