ChineseLunisolarCalendar.GetEra(DateTime) 方法
定义
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 参数中的纪元。An integer that represents the era in the time parameter.
- 属性
例外
time 小于 MinSupportedDateTime 或大于 MaxSupportedDateTime。time is less than MinSupportedDateTime or greater than MaxSupportedDateTime.