BindingRestrictions.GetInstanceRestriction(Expression, Object) 方法

定义

创建用来检查表达式中的对象实例标识的绑定限制。

public:
 static System::Dynamic::BindingRestrictions ^ GetInstanceRestriction(System::Linq::Expressions::Expression ^ expression, System::Object ^ instance);
public static System.Dynamic.BindingRestrictions GetInstanceRestriction (System.Linq.Expressions.Expression expression, object instance);
public static System.Dynamic.BindingRestrictions GetInstanceRestriction (System.Linq.Expressions.Expression expression, object? instance);
static member GetInstanceRestriction : System.Linq.Expressions.Expression * obj -> System.Dynamic.BindingRestrictions
Public Shared Function GetInstanceRestriction (expression As Expression, instance As Object) As BindingRestrictions

参数

expression
Expression

要测试的表达式。

instance
Object

要测试的恰当对象实例。

返回

新绑定限制。

适用于