EdmFunctions.Length(DbExpression) Método

Definição

Cria um DbFunctionExpression que invoca a função canónica 'Comprimento' com o argumento especificado, que deve ter um tipo de resultado de string. O tipo de resultado da expressão é 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

Parâmetros

stringArgument
DbExpression

Uma expressão que especifica a cadeia para a qual o comprimento deve ser calculado.

Devoluções

Uma nova DbFunctionExpression que devolve o comprimento de stringArgument.

Exceções

stringArgument é null.

stringArgument é inválido.

Aplica-se a