語言

IConvertible.ToUInt16(IFormatProvider) 方法

定義

利用指定的文化特有格式資訊,將此實例值轉換為等效的 16 位元無符號整數。

public:
 System::UInt16 ToUInt16(IFormatProvider ^ provider);
public ushort ToUInt16(IFormatProvider provider);
public ushort ToUInt16(IFormatProvider? provider);
abstract member ToUInt16 : IFormatProvider -> uint16
Public Function ToUInt16 (provider As IFormatProvider) As UShort

參數

provider
IFormatProvider

一個 IFormatProvider 介面實作,提供特定文化的格式化資訊。

傳回

一個 16 位元無符號整數,等同於此實例的值。

適用於