Enum.IConvertible.ToSingle(IFormatProvider) 方法

定义

根据基础类型将当前值转换为单精度浮点数。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);
Function ToSingle (provider As IFormatProvider) As Single Implements IConvertible.ToSingle

参数

provider
IFormatProvider

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

返回

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

实现

异常

在所有情况下。In all cases.

注解

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

适用于