System::DateTime::IsLeapYear 方法

DateTime::IsLeapYear method

确定指定的年份是否为闰年。

static bool System::DateTime::IsLeapYear(int year)
参数类型描述
年份int要检查的年份

ReturnValue

如果指定的年份是闰年则为 true,否则为 false

另见