BindingRestrictions.GetInstanceRestriction(Expression, Object) Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.BindingRestrictionsPublic Shared Function GetInstanceRestriction (expression As Expression, instance As Object) As BindingRestrictionsParameters
- expression
- Expression
The expression to test.
- instance
- Object
The exact object instance to test.
Returns
The new binding restrictions.