GregorianCalendar.GetLeapMonth(Int32, Int32) Metoda

Definice

Vypočítá přestupný měsíc pro zadaný rok a éru.

public:
 override int GetLeapMonth(int year, int era);
public override int GetLeapMonth (int year, int era);
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetLeapMonth (int year, int era);
override this.GetLeapMonth : int * int -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.GetLeapMonth : int * int -> int
Public Overrides Function GetLeapMonth (year As Integer, era As Integer) As Integer

Parametry

year
Int32

Rok.

era
Int32

Éra. Zadejte nebo ADEraGregorianCalendar.Eras[Calendar.CurrentEra].

Návraty

Vždy 0, protože gregoriánský kalendář nerozpozná přestupné měsíce.

Atributy

Výjimky

year je menší než 1. rok gregoriánského kalendáře nebo vyšší než gregoriánský kalendářní rok 9999.

-nebo-

era není ADEra nebo GregorianCalendar.Eras[Calendar.CurrentEra].

Platí pro