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 to Entities 查询中。

此函数将转换为数据库中的相应函数。 有关相应SQL Server函数的信息,请参阅 ISNUMERIC (Transact-SQL)

适用于