BindingRestrictions.GetTypeRestriction(Expression, Type) Metoda

Definice

Vytvoří omezení vazby, které kontroluje výraz pro identitu typu modulu runtime.

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

Parametry

expression
Expression

Výraz, který chcete otestovat.

type
Type

Přesný typ, který se má testovat.

Návraty

Nová omezení vazeb.

Platí pro