GregorianCalendar.GetLeapMonth(Int32, Int32) Méthode

Définition

Calcule le mois bissextile pour une année et une ère spécifiées.

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
abstract member GetLeapMonth : int * int -> int
override this.GetLeapMonth : int * int -> int
Public Overrides Function GetLeapMonth (year As Integer, era As Integer) As Integer

Paramètres

year
Int32

Une année.

era
Int32

Une ère. Spécifiez ADEra ou GregorianCalendar.Eras[Calendar.CurrentEra].

Retours

Toujours 0, car le calendrier grégorien ne reconnaît pas les mois bissextiles.

Attributs

Exceptions

year est inférieur à l’année civile grégorienne 1 ou supérieure à l’année civile grégorienne 9999.

-ou-

era n’est pas ADEra ou GregorianCalendar.Eras[Calendar.CurrentEra].

S’applique à