共用方式為


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

要測試的確切物件執行個體。

傳回

新的繫結限制。

適用於