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.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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.