FormatterConverter.ToUInt32(Object) 方法

定义

重要

此 API 不符合 CLS。

将值转换为 32 位无符号整数。Converts a value to a 32-bit unsigned integer.

public:
 virtual System::UInt32 ToUInt32(System::Object ^ value);
[System.CLSCompliant(false)]
public uint ToUInt32 (object value);
[<System.CLSCompliant(false)>]
abstract member ToUInt32 : obj -> uint32
override this.ToUInt32 : obj -> uint32
Public Function ToUInt32 (value As Object) As UInteger

参数

value
Object

要转换的对象。The object to convert.

返回

UInt32

转换的 value;或者,如果 type 参数为 null,则为 nullThe converted value or null if the type parameter is null.

实现

属性

例外

value 参数为 nullThe value parameter is null.

注解

此方法使用固定区域性 (参阅 CultureInfo.InvariantCulture) 。This method uses the invariant culture (see CultureInfo.InvariantCulture). 若要使用当前区域性或指定区域性,请改用 Convert.ToUInt32 方法。To use the current culture or to specify a culture, use the Convert.ToUInt32 method instead. 有关详细信息,请参阅UInt32ConvertValueTypeFor more information, see UInt32, Convert, and ValueType.

适用于