BindableObject.IsSet(BindableProperty) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果目标属性存在并且已设置,则返回 true
。
public bool IsSet (Xamarin.Forms.BindableProperty targetProperty);
member this.IsSet : Xamarin.Forms.BindableProperty -> bool
参数
- targetProperty
- BindableProperty
要检查的属性。
返回
System.Boolean
如果目标属性存在并且已设置,则为 true
。 如果尚未设置属性,则返回 false
。 targetProperty
如果 为 null,ArgumentNullException
则引发 。