共用方式為


DateFormatSymbols.SetEras(String[]) Method

Definition

Sets era strings.

[Android.Runtime.Register("setEras", "([Ljava/lang/String;)V", "GetSetEras_arrayLjava_lang_String_Handler")]
public virtual void SetEras (string[]? newEras);
[<Android.Runtime.Register("setEras", "([Ljava/lang/String;)V", "GetSetEras_arrayLjava_lang_String_Handler")>]
abstract member SetEras : string[] -> unit
override this.SetEras : string[] -> unit

Parameters

newEras
String[]

the new era strings.

Attributes

Remarks

Sets era strings. For example: "AD" and "BC".

Java documentation for java.text.DateFormatSymbols.setEras(java.lang.String[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to