ChineseLunisolarCalendar.GetEra(DateTime) 方法

定义

检索对应于指定 DateTime 类型的纪元。Retrieves the era that corresponds to the specified DateTime type.

public:
 override int GetEra(DateTime time);
public override int GetEra (DateTime time);
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetEra (DateTime time);
override this.GetEra : DateTime -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.GetEra : DateTime -> int
Public Overrides Function GetEra (time As DateTime) As Integer

参数

time
DateTime

要读取的 DateTime 类型。The DateTime type to read.

返回

Int32

一个整数,表示 time 参数中的纪元。An integer that represents the era in the time parameter.

属性

例外

适用于