FrameworkElement.GetBindingExpression(DependencyProperty) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したプロパティのバインドを表す BindingExpression を返します。
public:
System::Windows::Data::BindingExpression ^ GetBindingExpression(System::Windows::DependencyProperty ^ dp);
public System.Windows.Data.BindingExpression GetBindingExpression(System.Windows.DependencyProperty dp);
member this.GetBindingExpression : System.Windows.DependencyProperty -> System.Windows.Data.BindingExpression
Public Function GetBindingExpression (dp As DependencyProperty) As BindingExpression
パラメーター
バインディングを取得するターゲット DependencyProperty 。
返品
ターゲット プロパティにアクティブなバインディングがある場合は BindingExpression 。それ以外の場合は、 nullを返します。
注釈
nullの戻り値を確認することは、プロパティにアクティブなバインドがあるかどうかを判断するために使用できる手法です。
このメソッドは、 BindingOperations.GetBindingExpression メソッドの便利なラッパーにすぎません。
GetBindingExpression は、現在のインスタンスと dp パラメーターを BindingOperations.GetBindingExpressionに渡します。