語言

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 設定在該屬性上的物件,或 null 若尚未設定綁定物件。

例外狀況

target且dp參數不可能是空。

備註

該BindingExpressionBase類別是 、 BindingExpression和 PriorityBindingExpression 類別的MultiBindingExpression共同基底類別。 如果你事先知道屬性上設定的綁定類型,可以使用 GetBindingExpression、 GetPriorityBindingExpression和 GetMultiBindingExpression 方法。

適用於

另請參閱