Share via


BindingOperations.GetBindingBase(DependencyObject, DependencyProperty) 方法

定義

擷取針對指定之屬性設定的 BindingBase 物件。

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

參數

target
DependencyObject

dp 所在的物件。

dp
DependencyProperty

要從中擷取 BindingBase 物件的繫結目標屬性。

傳回

BindingBase

針對指定之屬性設定的 BindingBase 物件;如果未設定繫結物件,則為 null

例外狀況

targetdp 參數不可以是 null

備註

類別 BindingBase 是 、 PriorityBindingMultiBinding 類別的 Binding 通用基類。 如果您事先知道 屬性上設定的系結類型,可以使用 GetBindingGetPriorityBindingGetMultiBinding 方法。

適用於

另請參閱