EdmFunctions.Length(DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje funkcję kanoniczną "Length" z określonym argumentem, który musi mieć typ wyniku ciągu. Typ wyniku wyrażenia to 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

Wyrażenie określające ciąg, dla którego ma zostać obliczona długość.

Zwraca

Nowa funkcja DbFunctionExpression zwracająca długość stringArgumentelementu .

Wyjątki

Parametr stringArgument ma wartość null.

stringArgument jest nieprawidłowy.

Dotyczy