EdmFunctions.Trim(DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , který vyvolá kanonickou funkci Trim se zadaným argumentem, který musí mít typ výsledku řetězce. Typ výsledku výrazu je také řetězec.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Trim(System::Data::Common::CommandTrees::DbExpression ^ stringArgument);
public static System.Data.Common.CommandTrees.DbFunctionExpression Trim(this System.Data.Common.CommandTrees.DbExpression stringArgument);
static member Trim : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Trim (stringArgument As DbExpression) As DbFunctionExpression

Parametry

stringArgument
DbExpression

Výraz, který určuje řetězec, ze kterého se má odebrat počáteční a koncové mezery.

Návraty

Nový DbFunctionExpression, který vrací hodnotu stringArgument s úvodní a koncovou mezerou odstraněna.

Výjimky

stringArgument je null.

stringArgument je neplatný.

Platí pro