SqlFunctions.IsNumeric Method (String)

 

Indicates whether the input value is a valid numeric type.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
[DbFunctionAttribute("SqlServer", "ISNUMERIC")]
public static Nullable<int> IsNumeric(
	string arg
)

Parameters

arg
Type: System.String

A string expression.

Return Value

Type: System.Nullable<Int32>

1 if the input expression is a valid numeric data type; otherwise, 0.