语言

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 未设置任何绑定对象。

例外

参数targetdp不能null为 .

注解

该BindingBase类是和类的通用基类BindingPriorityBindingMultiBinding。 如果事先知道属性上设置的绑定类型,GetBinding则可以使用GetPriorityBinding和GetMultiBinding方法。

适用于

另请参阅