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 d’une année bissextile d’une année et d’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
Public Overrides Function GetLeapMonth (year As Integer, era As Integer) As Integer
Paramètres
- year
- Int32
Une année.
Retours
Retourne toujours 0 car le calendrier grégorien ne reconnaît pas les mois bissextiles.
- Attributs
Exceptions
year
est inférieur à l’année civile 1 grégorienne ou supérieur à l’année civile 9999 grégorienne.
- ou -
era
n'est pas ADEra, ni GregorianCalendar.Eras[Calendar.CurrentEra]
.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour