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 的数字。

适用于