XmlConvert.ToUInt64(String) 方法

定義

重要

此 API 不符合 CLS 規範。

String 轉換成對等的 UInt64

public:
 static System::UInt64 ToUInt64(System::String ^ s);
[System.CLSCompliant(false)]
public static ulong ToUInt64 (string s);
[<System.CLSCompliant(false)>]
static member ToUInt64 : string -> uint64
Public Shared Function ToUInt64 (s As String) As ULong

參數

s
String

要轉換的字串。

傳回

字串的對等 UInt64

屬性

例外狀況

snull

s 的格式不正確。

s 代表小於 UInt64.MinValue 或大於 UInt64.MaxValue的數位。

適用於