Bagikan melalui


BindingRestrictions.GetInstanceRestriction(Expression, Object) Metode

Definisi

Membuat pembatasan pengikatan yang memeriksa ekspresi untuk identitas instans objek.

public:
 static System::Dynamic::BindingRestrictions ^ GetInstanceRestriction(System::Linq::Expressions::Expression ^ expression, System::Object ^ instance);
public static System.Dynamic.BindingRestrictions GetInstanceRestriction (System.Linq.Expressions.Expression expression, object instance);
public static System.Dynamic.BindingRestrictions GetInstanceRestriction (System.Linq.Expressions.Expression expression, object? instance);
static member GetInstanceRestriction : System.Linq.Expressions.Expression * obj -> System.Dynamic.BindingRestrictions
Public Shared Function GetInstanceRestriction (expression As Expression, instance As Object) As BindingRestrictions

Parameter

expression
Expression

Ekspresi untuk diuji.

instance
Object

Instans objek yang tepat untuk diuji.

Mengembalikan

Pembatasan pengikatan baru.

Berlaku untuk