GregorianCalendar.GetLeapMonth(Int32, Int32) Método

Definição

Calcula o mês bissexto para um ano e era especificados.

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

Parâmetros

year
Int32

Um ano.

era
Int32

Uma era. Especifique ou ADEra ou GregorianCalendar.Eras[Calendar.CurrentEra].

Devoluções

Sempre 0 porque o calendário gregoriano não reconhece os meses bissextos.

Atributos

Exceções

year é inferior ao ano 1 do calendário gregoriano ou superior ao ano gregoriano 9999.

-ou-

era não ADEra é nem GregorianCalendar.Eras[Calendar.CurrentEra].

Aplica-se a