EdmFunctions.Length(DbExpression) 方法

定義

建立 DbFunctionExpression 一個,呼叫標準的「Length」函式,並指定參數,且必須有字串結果型別。 表達式的結果類型為Edm.Int32。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Length(System::Data::Common::CommandTrees::DbExpression ^ stringArgument);
public static System.Data.Common.CommandTrees.DbFunctionExpression Length(this System.Data.Common.CommandTrees.DbExpression stringArgument);
static member Length : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Length (stringArgument As DbExpression) As DbFunctionExpression

參數

stringArgument
DbExpression

一個表示式,指定應計算長度的字串。

傳回

一個新的 DbFunctionExpression,回傳 的 stringArgument長度。

例外狀況

stringArgumentnull

stringArgument 無效。

適用於