BindingOperations.GetBindingExpressionBase 方法

定義

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

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

參數

target
DependencyObject

dp 所在的物件。

dp
DependencyProperty

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

傳回

BindingExpressionBase

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

例外狀況

targetdp 參數都不能為 null。

備註

類別 BindingExpressionBase 是 、 PriorityBindingExpressionMultiBindingExpression 類別的 BindingExpression 通用基類。 如果您事先知道屬性上設定的系結類型,可以使用 GetBindingExpressionGetPriorityBindingExpressionGetMultiBindingExpression 方法。

適用於

另請參閱