Aracılığıyla paylaş


BindingRestrictions.GetTypeRestriction(Expression, Type) Yöntem

Tanım

İfadenin çalışma zamanı türü kimliğini denetleyebilen bağlama kısıtlamasını oluşturur.

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

Parametreler

expression
Expression

Test etmek için ifade.

type
Type

Test için tam tür.

Döndürülenler

Yeni bağlama kısıtlamaları.

Şunlara uygulanır