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

綁定時應該使用的變數名稱。

傳回

一個新的表達式,綁定指定表達式和變數名稱。

例外狀況

inputvarName 為空值。

input 沒有收集結果。

適用於