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

定義

指定した引数を使用して正規の 'IndexOf' 関数を呼び出す DbFunctionExpression を作成します。各引数には文字列の結果型が必要です。 式の結果の型は Edm.Int32 です。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ IndexOf(System::Data::Common::CommandTrees::DbExpression ^ searchString, System::Data::Common::CommandTrees::DbExpression ^ stringToFind);
public static System.Data.Common.CommandTrees.DbFunctionExpression IndexOf(this System.Data.Common.CommandTrees.DbExpression searchString, System.Data.Common.CommandTrees.DbExpression stringToFind);
static member IndexOf : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function IndexOf (searchString As DbExpression, stringToFind As DbExpression) As DbFunctionExpression

パラメーター

searchString
DbExpression

stringToFindを検索する文字列を指定する式。

stringToFind
DbExpression

searchString内で検索する文字列を指定する式をオンにする必要があります。

返品

searchString内のstringToFindの最初のインデックスを返す新しい DbFunctionExpression。

例外

searchString または stringToFindnull

searchString または stringToFind が無効です。

注釈

IndexOf によって返されるインデックスは、 <b>1 から始まる</b>です。

適用対象