BindingOperations.IsDataBound(DependencyObject, DependencyProperty) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,表示該指定屬性目前是否為資料綁定狀態。
public:
static bool IsDataBound(System::Windows::DependencyObject ^ target, System::Windows::DependencyProperty ^ dp);
public static bool IsDataBound(System.Windows.DependencyObject target, System.Windows.DependencyProperty dp);
static member IsDataBound : System.Windows.DependencyObject * System.Windows.DependencyProperty -> bool
Public Shared Function IsDataBound (target As DependencyObject, dp As DependencyProperty) As Boolean
參數
- target
- DependencyObject
物件 其中 dp 是。
要檢查依賴性屬性。
傳回
true若指定的屬性是資料綁定的;否則,。 false
例外狀況
若 target 是 null。