BindableObject.IsSet(BindableProperty) 方法

定義

判斷可系結屬性是否存在,且已設定值。

public:
 bool IsSet(Microsoft::Maui::Controls::BindableProperty ^ targetProperty);
public bool IsSet (Microsoft.Maui.Controls.BindableProperty targetProperty);
member this.IsSet : Microsoft.Maui.Controls.BindableProperty -> bool
Public Function IsSet (targetProperty As BindableProperty) As Boolean

參數

targetProperty
BindableProperty

可系結屬性,用來檢查值目前是否已設定。

傳回

如果目標屬性存在且已設定,則為 true。 否則為 false

例外狀況

targetPropertynull 時擲回。

適用於