EdmFunctions.Trim(DbExpression) Methode

Definitie

Hiermee maakt u een DbFunctionExpression functie die de canonieke functie Trim aanroept met het opgegeven argument, dat een tekenreeksresultaattype moet hebben. Het resultaattype van de expressie is ook tekenreeks.

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

Parameters

stringArgument
DbExpression

Een expressie waarmee de tekenreeks wordt opgegeven waaruit de voorloop- en volgruimte moet worden verwijderd.

Retouren

Een nieuwe DbFunctionExpression die de waarde retourneert van stringArgument met voorloop- en volgruimte verwijderd.

Uitzonderingen

stringArgument is null.

stringArgument is ongeldig.

Van toepassing op