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 オブジェクト。バインド オブジェクトが設定されていない場合は null

例外

targetパラメーターとdp パラメーターをnullすることはできません。

注釈

BindingBase クラスは、BindingPriorityBinding、および MultiBinding クラスの共通基底クラスです。 プロパティに設定されているバインディングの種類がわかっている場合は、 GetBindingGetPriorityBinding、および GetMultiBinding メソッドを使用できます。

適用対象

こちらもご覧ください