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!

Calendar.IsLeapYear (Int32, Int32)

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

[Visual Basic]
Overloads MustOverride Public Function IsLeapYear( _
   ByVal year As Integer, _
   ByVal era As Integer _
) As Boolean
[C#]
public abstract bool IsLeapYear(
   int year,
   int era
);
[C++]
public: virtual bool IsLeapYear(
   int year,
   int era
) = 0;
[JScript]
public abstract function IsLeapYear(
   year : int,
   era : int
) : Boolean;

Parameters

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

Return Value

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

See Also

Calendar Class | Calendar Members | System.Globalization Namespace | Calendar.IsLeapYear Overload List