EdmFunctions.Replace(DbExpression, DbExpression, DbExpression) メソッド

定義

指定された引数で正規の 'Replace' 関数を呼び出す DbFunctionExpression を作成します。指定する各引数の結果型は文字列である必要があります。 式の結果型も文字列です。

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

パラメーター

stringArgument
DbExpression

置換操作の実行対象の文字列を指定する式。

toReplace
DbExpression

置換される文字列を指定する式。

replacement
DbExpression

置換文字列を指定する式。

戻り値

を超える新しい DbFunctionExpression は、 が発生toReplaceするたびに が にreplacement置き換えられる場所にstringArgument基づいて新しい文字列を返します。

例外

stringArgumenttoReplace、または replacement は、null です。

stringArgumentreplacementまたは toReplace が無効です。

適用対象