UInt16.IConvertible.ToUInt16(IFormatProvider) UInt16.IConvertible.ToUInt16(IFormatProvider) UInt16.IConvertible.ToUInt16(IFormatProvider) Method

定義

重要

此 API 不符合 CLS 規範。

如需這個成員的說明,請參閱 ToUInt16(IFormatProvider)For a description of this member, see ToUInt16(IFormatProvider).

 virtual System::UInt16 System.IConvertible.ToUInt16(IFormatProvider ^ provider) = IConvertible::ToUInt16;
[System.CLSCompliant(false)]
ushort IConvertible.ToUInt16 (IFormatProvider provider);
Function ToUInt16 (provider As IFormatProvider) As UShort Implements IConvertible.ToUInt16

參數

provider
IFormatProvider IFormatProvider IFormatProvider

這個參數已忽略。This parameter is ignored.

傳回

這個執行個體的目前值,未變更。The current value of this instance, unchanged.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 UInt16 執行個體轉換成 IConvertible 介面時,才能使用這個成員。It can be used only when the UInt16 instance is cast to an IConvertible interface.

適用於