共用方式為


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

要測試的確切型別。

傳回

新的繫結限制。

適用於