String.IConvertible.ToUInt32(IFormatProvider) String.IConvertible.ToUInt32(IFormatProvider) String.IConvertible.ToUInt32(IFormatProvider) Method

定義

重要

此 API 不符合 CLS 規範。

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

 virtual System::UInt32 System.IConvertible.ToUInt32(IFormatProvider ^ provider) = IConvertible::ToUInt32;
[System.CLSCompliant(false)]
uint IConvertible.ToUInt32 (IFormatProvider provider);
Function ToUInt32 (provider As IFormatProvider) As UInteger Implements IConvertible.ToUInt32

參數

provider
IFormatProvider IFormatProvider IFormatProvider

物件,提供特定文化特性格式資訊。An object that provides culture-specific formatting information.

傳回

目前 String 物件的轉換值。The converted value of the current String object.

實作

例外狀況

無法剖析目前 String 物件的值。The value of the current String object cannot be parsed.

目前 String 物件的值是大於 MaxValue 或小於 MinValue 的數字The value of the current String object is a number greater MaxValue or less than MinValue

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 String 執行個體轉換成 IConvertible 介面時,才能使用這個成員。It can be used only when the String instance is cast to an IConvertible interface. 建議的替代做法是呼叫Convert.ToUInt32(String, IFormatProvider)方法。The recommended alternative is to call the Convert.ToUInt32(String, IFormatProvider) method.

適用於