NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

GregorianCalendar.IsLeapYear

Checks whether a given year in the specified era is a leap year.

[Visual Basic]
Overrides Public Function IsLeapYear( _
   ByVal year As Integer, _
   ByVal era As Integer _
) As Boolean
[C#]
public override bool IsLeapYear(
   int year,
   int era
);
[C++]
public: override bool IsLeapYear(
   int year,
   int era
);
[JScript]
public override function IsLeapYear(
   year : int,
   era : int
) : Boolean;

Parameters

year
The year to check.
era
The era to check.

Return Value

Returns true if year is a leap year; otherwise false.

See Also

GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace