GregorianCalendar Constructor (GregorianCalendarTypes)

GregorianCalendar Constructor (GregorianCalendarTypes)

 

Initializes a new instance of the GregorianCalendar class using the specified GregorianCalendarTypes value.

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

public GregorianCalendar(
	GregorianCalendarTypes type
)

Parameters

type
Type: System.Globalization.GregorianCalendarTypes

The GregorianCalendarTypes value that denotes which language version of the calendar to create.

Exception Condition
ArgumentOutOfRangeException

type is not a member of the GregorianCalendarTypes enumeration.

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:
© 2016 Microsoft