DbExpressionBuilder.BindAs(DbExpression, String) メソッド

定義

指定した変数名を使用して指定された式をバインドする新しい DbExpressionBinding を作成します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbExpressionBinding ^ BindAs(System::Data::Common::CommandTrees::DbExpression ^ input, System::String ^ varName);
public static System.Data.Common.CommandTrees.DbExpressionBinding BindAs(this System.Data.Common.CommandTrees.DbExpression input, string varName);
static member BindAs : System.Data.Common.CommandTrees.DbExpression * string -> System.Data.Common.CommandTrees.DbExpressionBinding
<Extension()>
Public Function BindAs (input As DbExpression, varName As String) As DbExpressionBinding

パラメーター

input
DbExpression

バインドする式。

varName
String

バインドに使用する変数名。

返品

指定した式と変数名を持つ新しい式バインド。

例外

input または varName が null です。

input にはコレクションの結果がありません。

適用対象