BindingOperations.GetBindingExpressionBase Metode

Definisi

BindingExpressionBase Mengambil objek yang diatur pada properti yang ditentukan.

public:
 static System::Windows::Data::BindingExpressionBase ^ GetBindingExpressionBase(System::Windows::DependencyObject ^ target, System::Windows::DependencyProperty ^ dp);
public static System.Windows.Data.BindingExpressionBase GetBindingExpressionBase(System.Windows.DependencyObject target, System.Windows.DependencyProperty dp);
static member GetBindingExpressionBase : System.Windows.DependencyObject * System.Windows.DependencyProperty -> System.Windows.Data.BindingExpressionBase
Public Shared Function GetBindingExpressionBase (target As DependencyObject, dp As DependencyProperty) As BindingExpressionBase

Parameter

target
DependencyObject

Objek tempatnya dp .

dp
DependencyProperty

Properti target pengikatan untuk mengambil BindingExpressionBase objek.

Mengembalikan

Objek BindingExpressionBase yang diatur pada properti yang diberikan atau null jika tidak ada objek pengikatan yang telah diatur.

Pengecualian

Parameter target dan dp tidak boleh null.

Keterangan

Kelas BindingExpressionBase adalah kelas dasar umum untuk BindingExpressionkelas , , PriorityBindingExpressiondan MultiBindingExpression . Anda dapat menggunakan GetBindingExpressionmetode , GetPriorityBindingExpression, dan GetMultiBindingExpression jika Anda tahu terlebih dahulu jenis pengikatan yang diatur pada properti .

Berlaku untuk

Lihat juga