EdmFunctions.Replace(DbExpression, DbExpression, DbExpression) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した引数を使用して正規の '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に基づいて新しい文字列を返します。
例外
stringArgument または toReplace または replacement が null。
stringArgument または toReplace または replacement が無効です。