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
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。