EdmFunctions.Length(DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , který vyvolá kanonickou funkci Length se zadaným argumentem, který musí mít typ výsledku řetězce. Typ výsledku výrazu je 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

Parametry

stringArgument
DbExpression

Výraz, který určuje řetězec, pro který se má vypočítat délka.

Návraty

Nový DbFunctionExpression, který vrátí délku stringArgument.

Výjimky

stringArgument je null.

stringArgument je neplatný.

Platí pro