Enum.IConvertible.ToByte(IFormatProvider) 方法

定义

根据基础类型将当前值转换为 8 位无符号整数。Converts the current value to an 8-bit unsigned integer based on the underlying type.

 virtual System::Byte System.IConvertible.ToByte(IFormatProvider ^ provider) = IConvertible::ToByte;
byte IConvertible.ToByte (IFormatProvider provider);
Function ToByte (provider As IFormatProvider) As Byte Implements IConvertible.ToByte

参数

provider
IFormatProvider

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

返回

转换后的值。The converted value.

实现

注解

使用 Convert 执行转换。Uses Convert to perform the conversion.

适用于