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から始まる長さlengthの部分文字列stringArgument返す新しい DbFunctionExpression。

例外

stringArgumentstart、または lengthnull

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

注釈

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

適用対象