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 は、すべてのtoReplacereplacementに置き換えられるstringArgumentに基づいて新しい文字列を返します。

例外

stringArgument または toReplace または replacementnull

stringArgument または toReplace または replacement が無効です。

適用対象