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 为 null。
input 没有集合结果。