Sdílet prostřednictvím


EdmFunctions.Left(DbExpression, DbExpression) Metoda

Definice

Vytvoří objekt DbFunctionExpression , který vyvolá kanonické funkce Left se zadanými argumenty, které musí mít řetězec a celočíselný číselný typ výsledku. Typ výsledku výrazu je řetězec.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Left(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ length);
public static System.Data.Common.CommandTrees.DbFunctionExpression Left (this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression length);
static member Left : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Left (stringArgument 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 úplně vlevo.

length
DbExpression

Výraz, který určuje délku podřetěžce úplně vlevo, který se má extrahovat z stringArgument.

Návraty

Nový DbFunctionExpression, který vrátí podřetěžce délky length úplně vlevo z stringArgument.

Výjimky

stringArgument nebo length je null.

Formát stringArgument je neplatný.

Platí pro