ChineseLunisolarCalendar.GetEra(DateTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
Returns
An integer that represents the era in the time
parameter.
- Attributes
Exceptions
time
is less than MinSupportedDateTime or greater than MaxSupportedDateTime.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.