共用方式為


SqlFunctions.IsNumeric(String) 方法

定義

指出輸入值是否為有效的數字型別 (Numeric Type)。

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 to Entities 查詢內。

此函式會轉譯為資料庫中的對應函式。 如需對應 SQL Server 函式的相關信息,請參閱 ISNUMERIC (Transact-SQL)

適用於