GetMonthsInYear Method (Int32, Int32)
Collapse the table of content
Expand the table of content

TaiwanCalendar.GetMonthsInYear Method (Int32, Int32)

 

Returns the number of months in the specified year in the specified era.

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

override GetMonthsInYear : 
        year:int *
        era:int -> int

Parameters

year
Type: System.Int32

An integer that represents the year.

era
Type: System.Int32

An integer that represents the era.

Return Value

Type: System.Int32

The number of months in the specified year in the specified era.

Exception Condition
ArgumentOutOfRangeException

year is outside the range supported by the calendar.

-or-

era is outside the range supported by the calendar.

The following example calls GetMonthsInYear for five years in each era.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft