System::Globalization::Calendar::GetMonthsInYear 方法

Calendar::GetMonthsInYear(int) const method

获取指定年份的月份数。

virtual int System::Globalization::Calendar::GetMonthsInYear(int year) const
参数类型描述
年份int获取月份数的年份。

ReturnValue

指定年份的月份数。

另见

Calendar::GetMonthsInYear(int, int) const method

获取指定年份的月份数。

virtual int System::Globalization::Calendar::GetMonthsInYear(int year, int era) const
参数类型描述
年份int获取月份数的年份。
纪元int纪元。

ReturnValue

指定时代中指定年份的月份数。

另见