XmlConvert.ToInt64(String) 方法

定义

String将转换为等效项Int64

public:
 static long ToInt64(System::String ^ s);
public static long ToInt64(string s);
static member ToInt64 : string -> int64
Public Shared Function ToInt64 (s As String) As Long

参数

s
String

要转换的字符串。

返回

字符串 Int64 的等效项。

例外

snull

s 格式不正确。

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

适用于