SqlFunctions.IsNumeric(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示輸入值是否為有效的數值型別。
[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。
- 屬性