DbExpressionBuilder.BindAs(DbExpression, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 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 為空值。
input 沒有收集結果。