Redigeeri

Jagamisviis:


BindingRestrictions.GetInstanceRestriction(Expression, Object) Method

Definition

Creates the binding restriction that checks the expression for object instance identity.

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

Parameters

expression
Expression

The expression to test.

instance
Object

The exact object instance to test.

Returns

The new binding restrictions.

Applies to