BindingOperations.GetPriorityBindingExpression 方法

定义

返回与指定对象上的指定的绑定目标关联的 PriorityBindingExpression 对象。

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

参数

target
DependencyObject

dp所在的绑定目标对象。

dp
DependencyProperty

从中检索 PriorityBindingExpression 对象的绑定目标属性。

返回

与给定属性相关联的 PriorityBindingExpression 对象;如果不存在,则为 null

例外

targetdp 参数不能为 null

适用于

另请参阅