This documentation is archived and is not being maintained.

GregorianCalendar.Eras Property

Gets the list of eras in the GregorianCalendar.

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

public override int[] Eras { get; }
/** @property */
public int[] get_Eras ()

public override function get Eras () : int[]

Not applicable.

Property Value

An array of integers that represents the eras in the GregorianCalendar.

The Gregorian calendar recognizes two eras: B.C. or B.C.E., and A.D. or C.E. This implementation of the GregorianCalendar class recognizes only the current era (A.D. or C.E.). This property always returns an array with only one element.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0
Show: