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

定義

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

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

パラメーター

stringArgument
DbExpression

取得元の文字列を指定する式。この文字列から部分文字列が取得されます。

start
DbExpression

取得する部分文字列の開始インデックスを指定する式。

length
DbExpression

部分文字列の長さを指定する式。

戻り値

で始まるstart長さのlengthstringArgument部分文字列を返す新しい DbFunctionExpression。

例外

stringArgumentstart、または lengthnull です。

stringArgumentstart、または length が無効です。

注釈

部分文字列では、start で指定されたインデックスが b>1 から始まる</b> である必要があります<。

適用対象