SqlFunctions.IsNumeric(String) 方法

定义

指示输入值是否为有效的数值类型。

[System.Data.Entity.DbFunction("SqlServer", "ISNUMERIC")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> IsNumeric (string arg);
static member IsNumeric : string -> Nullable<int>
Public Shared Function IsNumeric (arg As String) As Nullable(Of Integer)

参数

arg
String

一个字符串表达式。

返回

如果输入表达式是有效的数值类型,则为 1;否则为 0。

属性

适用于