EdmFunctions.Replace(DbExpression, DbExpression, DbExpression) Metoda

Definice

Vytvoří DbFunctionExpression , která vyvolá kanonické funkce Replace se zadanými argumenty, které musí mít každý 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 ^ Replace(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ toReplace, System::Data::Common::CommandTrees::DbExpression ^ replacement);
public static System.Data.Common.CommandTrees.DbFunctionExpression Replace(this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression toReplace, System.Data.Common.CommandTrees.DbExpression replacement);
static member Replace : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Replace (stringArgument As DbExpression, toReplace As DbExpression, replacement As DbExpression) As DbFunctionExpression

Parametry

stringArgument
DbExpression

Výraz, který určuje řetězec, ve kterém se má provést operace nahrazení.

toReplace
DbExpression

Výraz, který určuje řetězec, který je nahrazen.

replacement
DbExpression

Výraz, který určuje náhradní řetězec.

Návraty

Nový DbFunctionExpression, než vrátí nový řetězec na základě toho, kde stringArgument je každý výskyt toReplace nahrazen replacement.

Výjimky

stringArgument nebo toReplacereplacement je null.

stringArgument nebo toReplacereplacement je neplatný.

Platí pro