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 无效。

适用于