ChineseLunisolarCalendar.GetEra(DateTime) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した 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 パラメーターの時代 (年号) を表す整数。
- 属性
例外
time が MinSupportedDateTime より小さいか MaxSupportedDateTime より大きいです。