GregorianCalendar.CalendarType Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the GregorianCalendarTypes value that denotes the language version of the current GregorianCalendar.

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

abstract CalendarType : GregorianCalendarTypes with get, set
override CalendarType : GregorianCalendarTypes with get, set

Property Value

Type: System.Globalization.GregorianCalendarTypes

A GregorianCalendarTypes value that denotes the language version of the current GregorianCalendar.

Exception Condition
ArgumentOutOfRangeException

The value specified in a set operation is not a member of the GregorianCalendarTypes enumeration.

InvalidOperationException

In a set operation, the current instance is read-only.

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.

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: