BindingRestrictions.GetInstanceRestriction(Expression, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立繫結限制,該限制會檢查運算式中是否有物件執行個體識別。
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
要測試的確切物件執行個體。
傳回
新的繫結限制。