語言

DateTimeFormatterBuilder.AppendOptional(DateTimeFormatter) 方法

定義

在建構器上附加一個格式化器,該格式化器可選擇格式化/解析。

[Android.Runtime.Register("appendOptional", "(Ljava/time/format/DateTimeFormatter;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendOptional(Java.Time.Format.DateTimeFormatter? formatter);
[<Android.Runtime.Register("appendOptional", "(Ljava/time/format/DateTimeFormatter;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendOptional : Java.Time.Format.DateTimeFormatter -> Java.Time.Format.DateTimeFormatterBuilder

參數

formatter
DateTimeFormatter

formatter 要加,不是 null

傳回

這是鏈結時的,不是空

屬性

備註

Java 文件 java.time.format.DateTimeFormatterBuilder.appendOptional(java.time.format.DateTimeFormatter)

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

適用於