BindingRestrictions.GetExpressionRestriction(Expression) 方法

定义

创建用来检查表达式中的任意不可变属性的绑定限制。Creates the binding restriction that checks the expression for arbitrary immutable properties.

public:
 static System::Dynamic::BindingRestrictions ^ GetExpressionRestriction(System::Linq::Expressions::Expression ^ expression);
public static System.Dynamic.BindingRestrictions GetExpressionRestriction (System.Linq.Expressions.Expression expression);
static member GetExpressionRestriction : System.Linq.Expressions.Expression -> System.Dynamic.BindingRestrictions
Public Shared Function GetExpressionRestriction (expression As Expression) As BindingRestrictions

参数

expression
Expression

表示限制的表达式。The expression representing the restrictions.

返回

BindingRestrictions

新绑定限制。The new binding restrictions.

注解

按照约定,此方法创建的一般限制必须仅测试不可变的对象属性。By convention, the general restrictions created by this method must only test immutable object properties.

适用于