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的數位。

適用於