语言

DateTimeFormatterBuilder.AppendGenericZoneText 方法

定义

重载

名称 说明
AppendGenericZoneText(TextStyle)

将泛型时区名称(如“Pacific Time”)追加到格式化程序。

AppendGenericZoneText(TextStyle, ICollection<ZoneId>)

将泛型时区名称(如“Pacific Time”)追加到格式化程序。

AppendGenericZoneText(TextStyle)

将泛型时区名称(如“Pacific Time”)追加到格式化程序。

[Android.Runtime.Register("appendGenericZoneText", "(Ljava/time/format/TextStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=34)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendGenericZoneText(Java.Time.Format.TextStyle? textStyle);
[<Android.Runtime.Register("appendGenericZoneText", "(Ljava/time/format/TextStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=34)>]
member this.AppendGenericZoneText : Java.Time.Format.TextStyle -> Java.Time.Format.DateTimeFormatterBuilder

参数

textStyle
TextStyle

要使用的文本样式,而不是 null

返回

此操作用于链接,而不是 null

特性

注解

泛型名称不包括夏令时信息。

适用于

AppendGenericZoneText(TextStyle, ICollection<ZoneId>)

将泛型时区名称(如“Pacific Time”)追加到格式化程序。

[Android.Runtime.Register("appendGenericZoneText", "(Ljava/time/format/TextStyle;Ljava/util/Set;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=34)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendGenericZoneText(Java.Time.Format.TextStyle? textStyle, System.Collections.Generic.ICollection<Java.Time.ZoneId>? preferredZones);
[<Android.Runtime.Register("appendGenericZoneText", "(Ljava/time/format/TextStyle;Ljava/util/Set;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=34)>]
member this.AppendGenericZoneText : Java.Time.Format.TextStyle * System.Collections.Generic.ICollection<Java.Time.ZoneId> -> Java.Time.Format.DateTimeFormatterBuilder

参数

textStyle
TextStyle

要使用的文本样式,而不是 null

preferredZones
ICollection<ZoneId>

首选区域 ID 集,而不是 null

返回

此操作用于链接,而不是 null

特性

注解

当时区名称不明确时,将使用首选区域。

适用于