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;
Returns the number of days in the specified year.
Exception Type | Condition |
---|---|
ArgumentException | if month is less than 1 or greater than 12. |
GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace