EdmFunctions.Substring(DbExpression, DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 DbFunctionExpression 一個,呼叫標準的「子字串」函式,並指定參數,該函數必須包含字串與整數數值結果型別。 表達式的結果類型為字串。
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Substring(this System.Data.Entity.Core.Common.CommandTrees.DbExpression stringArgument, System.Data.Entity.Core.Common.CommandTrees.DbExpression start, System.Data.Entity.Core.Common.CommandTrees.DbExpression length);
static member Substring : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Substring (stringArgument As DbExpression, start As DbExpression, length As DbExpression) As DbFunctionExpression
參數
- stringArgument
- DbExpression
一個表示式,用來指定要從哪個字串中提取子字串。
- start
- DbExpression
一個表示式,指定該子串應從哪個索引中取出。
- length
- DbExpression
一個指定子字串長度的表達式。
傳回
一個新的 DbFunctionExpression,從 stringArgument 從起始處回傳長度為長度的子字串。