Share via


EdmFunctions.Length(DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione canonica "Length" con l'argomento specificato, che deve avere una stringa come tipo di risultato. Il tipo di risultato dell'espressione è 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

Parametri

stringArgument
DbExpression

Espressione che specifica la stringa per la quale è necessario calcolare la lunghezza.

Restituisce

Nuovo DbFunctionExpression che restituisce la lunghezza di stringArgument.

Eccezioni

stringArgument è null.

stringArgument non è valido.

Si applica a