EdmFunctions.Substring(DbExpression, DbExpression, DbExpression) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří DbFunctionExpression , která vyvolá kanonickou funkci Substring se zadanými argumenty, které musí obsahovat řetězec a celočíselné typy výsledků. Typ výsledku výrazu je řetězec.
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
Výraz, který určuje řetězec, ze kterého se má extrahovat podřetězce.
- start
- DbExpression
Výraz, který určuje počáteční index, ze kterého má být podřetězděna.
- length
- DbExpression
Výraz, který určuje délku podřetědce.
Návraty
Nový DbFunctionExpression, který vrátí podřetězí délku length od stringArgument začátku od start.
Výjimky
stringArgument, startnebo length je null.
stringArgument, startnebo length je neplatný.
Poznámky
Podřetětězdí vyžaduje, aby index zadaný počátečním řetězcem byl <b>1/<b>.