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

適用於