语言

DateFormat.GetBooleanAttribute(DateFormat+BooleanAttribute) 方法

定义

如果返回属性缺少 false,则返回此实例的指定布尔值Attribute 的当前值。

[Android.Runtime.Register("getBooleanAttribute", "(Landroid/icu/text/DateFormat$BooleanAttribute;)Z", "GetGetBooleanAttribute_Landroid_icu_text_DateFormat_BooleanAttribute_Handler", ApiSince=24)]
public virtual bool GetBooleanAttribute(Android.Icu.Text.DateFormat.BooleanAttribute? key);
[<Android.Runtime.Register("getBooleanAttribute", "(Landroid/icu/text/DateFormat$BooleanAttribute;)Z", "GetGetBooleanAttribute_Landroid_icu_text_DateFormat_BooleanAttribute_Handler", ApiSince=24)>]
abstract member GetBooleanAttribute : Android.Icu.Text.DateFormat.BooleanAttribute -> bool
override this.GetBooleanAttribute : Android.Icu.Text.DateFormat.BooleanAttribute -> bool

参数

key
DateFormat.BooleanAttribute

查询其启用状态的日期分析选项。

返回

true 如果已启用所选分析选项,则为 ;否则,为 false.

特性

注解

如果返回属性缺少 false,则返回此实例的指定布尔值Attribute 的当前值。

Android 参考。android.icu.text.DateFormat.getBooleanAttribute

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于