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.GetDaysInYear

Returns the number of days in the year specified by the specified year and era.

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

Parameters

year
The year.
era
The era of this calendar to consider.

Return Value

Returns the number of days in the specified year.

Exceptions

Exception Type Condition
ArgumentException if month is less than 1 or greater than 12.

See Also

GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace