BindingRestrictions.GetTypeRestriction(Expression, Type) 方法

定义

创建用来检查表达式中的运行时类型标识的绑定限制。

public:
 static System::Dynamic::BindingRestrictions ^ GetTypeRestriction(System::Linq::Expressions::Expression ^ expression, Type ^ type);
public static System.Dynamic.BindingRestrictions GetTypeRestriction (System.Linq.Expressions.Expression expression, Type type);
static member GetTypeRestriction : System.Linq.Expressions.Expression * Type -> System.Dynamic.BindingRestrictions
Public Shared Function GetTypeRestriction (expression As Expression, type As Type) As BindingRestrictions

参数

expression
Expression

要测试的表达式。

type
Type

要测试的恰当类型。

返回

新绑定限制。

适用于