System.Globalization.CalendarAlgorithmType Enumeration

Specifies whether a calendar is solar-based, lunar-based, or lunisolar-based.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum CalendarAlgorithmType

Remarks

A date calculation for a particular calendar depends on whether the calendar is solar-based, lunar-based, or lunisolar-based. For example, the System.Globalization.GregorianCalendar, System.Globalization.JapaneseCalendar, and System.Globalization.JulianCalendar classes are solar-based, the System.Globalization.HijriCalendar and System.Globalization.UmAlQuraCalendar classes are lunar-based,.and the System.Globalization.HebrewCalendar and System.Globalization.JapaneseLunisolarCalendar classes are lunisolar-based, thus using solar calculations for the year and lunar calculations for the month and day.

A System.Globalization.CalendarAlgorithmType value, which is returned by a calendar member such as the Calendar.AlgorithmType property, specifies the foundation for a particular calendar.

Members

Member NameDescription
LunarCalendar

A lunar-based calendar.

LunisolarCalendar

A lunisolar-based calendar.

SolarCalendar

A solar-based calendar.

Unknown

An unknown calendar basis.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0