This documentation is archived and is not being maintained.

GregorianCalendarTypes Enumeration

Defines the different language versions of the Gregorian calendar.

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

[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
type GregorianCalendarTypes

Member nameDescription
Supported by the XNA FrameworkLocalizedRefers to the localized version of the Gregorian calendar, based on the language of the CultureInfo that uses the DateTimeFormatInfo.
Supported by the XNA FrameworkUSEnglishRefers to the U.S. English version of the Gregorian calendar.
Supported by the XNA FrameworkMiddleEastFrenchRefers to the Middle East French version of the Gregorian calendar.
Supported by the XNA FrameworkArabicRefers to the Arabic version of the Gregorian calendar.
Supported by the XNA FrameworkTransliteratedEnglishRefers to the transliterated English version of the Gregorian calendar.
Supported by the XNA FrameworkTransliteratedFrenchRefers to the transliterated French version of the Gregorian calendar.

The date and time patterns associated with the GregorianCalendar vary depending on the language. If the GregorianCalendar is selected in DateTimeFormatInfo.Calendar, GregorianCalendarTypes can be used to specify which date and time patterns to use in that DateTimeFormatInfo.

For Arabic cultures, more language versions of the Gregorian calendar are available. For example, you can use the French version of GregorianCalendar using the MiddleEastFrench value.

A culture that supports GregorianCalendar might not support all language versions of GregorianCalendar. The CultureInfo.Calendar and CultureInfo.OptionalCalendars properties specify the calendars supported by that culture. If GregorianCalendar is supported, CalendarType can be used to determine which language versions of GregorianCalendar are supported.

The following code example demonstrates how to determine the GregorianCalendar language version supported by the culture.

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

The following code example prints a DateTime using a GregorianCalendar that is localized.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: