EdmFunctions.Substring(DbExpression, DbExpression, DbExpression) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy obiekt DbFunctionExpression , który wywołuje funkcję kanoniczną "Substring" z określonymi argumentami, które muszą mieć ciąg i typy wyników liczbowych liczb całkowitych. Typ wyniku wyrażenia to ciąg.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ Substring(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ start, System::Data::Common::CommandTrees::DbExpression ^ length);
public static System.Data.Common.CommandTrees.DbFunctionExpression Substring(this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression start, System.Data.Common.CommandTrees.DbExpression length);
static member Substring : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Substring (stringArgument As DbExpression, start As DbExpression, length As DbExpression) As DbFunctionExpression
Parametry
- stringArgument
- DbExpression
Wyrażenie określające ciąg, z którego ma być wyodrębniony podciąg.
- start
- DbExpression
Wyrażenie określające indeks początkowy, z którego ma zostać wykonane podciąg.
- length
- DbExpression
Wyrażenie określające długość podciągu.
Zwraca
Nowa funkcja DbFunctionExpression, która zwraca podciąg długości length od stringArgument wartości rozpoczynającej się od start.
Wyjątki
stringArgument, lub startlength ma wartość null.
stringArgument, lub startlength jest nieprawidłowy.
Uwagi
Podciąg wymaga, aby indeks określony od początku był <oparty> na b<1/b>.