Conversions.ToInteger 方法

定義

將指定的物件轉換為整數值。

多載

名稱 Description
ToInteger(Object)

將物件轉換為整數值。

ToInteger(String)

將字串轉換成整數值。

ToInteger(Object)

將物件轉換為整數值。

public:
 static int ToInteger(System::Object ^ Value);
public static int ToInteger(object Value);
static member ToInteger : obj -> int
Public Shared Function ToInteger (Value As Object) As Integer

參數

Value
Object

要轉換的物件。

傳回

物品 int 的價值。

適用於

ToInteger(String)

將字串轉換成整數值。

public:
 static int ToInteger(System::String ^ Value);
public static int ToInteger(string Value);
static member ToInteger : string -> int
Public Shared Function ToInteger (Value As String) As Integer

參數

Value
String

要轉換的字串。

傳回

int 串的價值。

適用於