Język

EdmFunctions.Trim(DbExpression) Metoda

Definicja

Tworzy obiekt DbFunctionExpression , który wywołuje funkcję kanoniczną "Trim" z określonym argumentem, który musi mieć typ wyniku ciągu. Typ wyniku wyrażenia jest również ciągiem.

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

Wyrażenie określające ciąg, z którego należy usunąć spację prowadzącą i końcową.

Zwraca

Nowa funkcja DbFunctionExpression zwracająca stringArgument wartość z usuniętym miejscem wiodącym i końcowym.

Wyjątki

Parametr stringArgument ma wartość null.

stringArgument jest nieprawidłowy.

Dotyczy