XmlConvert.ToUInt32(String) 方法

定义

重要

此 API 不符合 CLS。

String将转换为等效项UInt32

public:
 static System::UInt32 ToUInt32(System::String ^ s);
[System.CLSCompliant(false)]
public static uint ToUInt32(string s);
[<System.CLSCompliant(false)>]
static member ToUInt32 : string -> uint32
Public Shared Function ToUInt32 (s As String) As UInteger

参数

s
String

要转换的字符串。

返回

UInt32字符串的等效项。

属性

例外

snull

s 格式不正确。

s 表示小于 UInt32.MinValue 或大于 UInt32.MaxValue 的数字。

适用于