DateFormat.SetBooleanAttribute(DateFormat+BooleanAttribute, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为此实例设置布尔属性。
[Android.Runtime.Register("setBooleanAttribute", "(Landroid/icu/text/DateFormat$BooleanAttribute;Z)Landroid/icu/text/DateFormat;", "GetSetBooleanAttribute_Landroid_icu_text_DateFormat_BooleanAttribute_ZHandler", ApiSince=24)]
public virtual Android.Icu.Text.DateFormat? SetBooleanAttribute(Android.Icu.Text.DateFormat.BooleanAttribute? key, bool value);
[<Android.Runtime.Register("setBooleanAttribute", "(Landroid/icu/text/DateFormat$BooleanAttribute;Z)Landroid/icu/text/DateFormat;", "GetSetBooleanAttribute_Landroid_icu_text_DateFormat_BooleanAttribute_ZHandler", ApiSince=24)>]
abstract member SetBooleanAttribute : Android.Icu.Text.DateFormat.BooleanAttribute * bool -> Android.Icu.Text.DateFormat
override this.SetBooleanAttribute : Android.Icu.Text.DateFormat.BooleanAttribute * bool -> Android.Icu.Text.DateFormat
参数
要更改的日期分析选项。
- value
- Boolean
true 若要启用该选项,则为 ; false 若要禁用它,则为
返回
分析选项更新后的此日期格式化程序。
- 特性
注解
为此实例设置布尔属性。 DateFormat 宽大性的各个方面由布尔属性控制。
Android 参考。android.icu.text.DateFormat.setBooleanAttribute
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。