BindableObject.IsSet(BindableProperty) 方法

定義

如果目標屬性存在且已設定,則傳回 true

public bool IsSet (Xamarin.Forms.BindableProperty targetProperty);
member this.IsSet : Xamarin.Forms.BindableProperty -> bool

參數

targetProperty
BindableProperty

要檢查的屬性。

傳回

如果目標屬性存在且已設定,則為 true。 如果屬性尚未設定,則傳回 falsetargetProperty如果 為 null, ArgumentNullException 則會擲回 。

適用於