語言

SqlFunctions.IsNumeric(String) 方法

定義

表示輸入值是否為有效的數值型別。

public:
 static Nullable<int> IsNumeric(System::String ^ arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "ISNUMERIC")]
public static int? IsNumeric(string arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "ISNUMERIC")>]
static member IsNumeric : string -> Nullable<int>
Public Shared Function IsNumeric (arg As String) As Nullable(Of Integer)

參數

arg
String

字串運算式。

傳回

若輸入表達式為有效的數值資料型態,則為 1;否則,0。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應的SQL Server函數,請參見 ISNUMERIC (Transact-SQL)。

適用於