共用方式為


MinguoEra.Of(Int32) Method

Definition

Obtains an instance of MinguoEra from an int value.

[Android.Runtime.Register("of", "(I)Ljava/time/chrono/MinguoEra;", "", ApiSince=26)]
public static Java.Time.Chrono.MinguoEra? Of (int minguoEra);
[<Android.Runtime.Register("of", "(I)Ljava/time/chrono/MinguoEra;", "", ApiSince=26)>]
static member Of : int -> Java.Time.Chrono.MinguoEra

Parameters

minguoEra
Int32

the BEFORE_ROC/ROC value to represent, from 0 (BEFORE_ROC) to 1 (ROC)

Returns

the era singleton, not null

Attributes

Remarks

Obtains an instance of MinguoEra from an int value.

MinguoEra is an enum representing the Minguo eras of BEFORE_ROC/ROC. This factory allows the enum to be obtained from the int value.

Java documentation for java.time.chrono.MinguoEra.of(int).

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