GregorianCalendar.GetLeapMonth(Int32, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.
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].