IConvertible.ToByte(IFormatProvider) 方法
定義
使用指定的特定文化特性之格式資訊,將這個執行個體的值轉換為相等的 8 位元不帶正負號的整數。Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.
public:
System::Byte ToByte(IFormatProvider ^ provider);
public byte ToByte (IFormatProvider provider);
public byte ToByte (IFormatProvider? provider);
abstract member ToByte : IFormatProvider -> byte
Public Function ToByte (provider As IFormatProvider) As Byte
參數
- provider
- IFormatProvider
IFormatProvider 介面實作,提供特定文化特性的格式資訊。An IFormatProvider interface implementation that supplies culture-specific formatting information.
傳回
8 位元不帶正負號的整數,相當於這個執行個體的值。An 8-bit unsigned integer equivalent to the value of this instance.