Share via


BindingOperations.IsDataBound(DependencyObject, DependencyProperty) 方法

定義

傳回值,這個值表示指定的屬性目前是否已繫結資料。

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 所在的物件。

dp
DependencyProperty

要檢查的相依性屬性。

傳回

Boolean

如果指定的屬性已繫結資料,則為 true,否則為 false

例外狀況

如果 targetnull

適用於