Returns the string containing the name of the specified era.
(in System.Globalization.dll) mscorlib
public string GetEraName(
- Type: System.Int32
The integer representing the era.
Type: System.StringA string containing the name of the era.
The era name is the name a calendar uses to refer to a period of time reckoned from a fixed point or event. For example, "A.D." or "C.E." is the current era in the Gregorian calendar.
The valid values for era are listed in the Eras property of the appropriate class derived from Calendar. For example: JapaneseCalendar.Eras displays a list of eras that are supported by this implementation.Notes to Callers
If the calendar is represented by TaiwanCalendar but the Thread.CurrentCulture is not "zh-TW", then NativeCalendarName, GetEraName, and GetAbbreviatedEraName return an empty string ("").
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0, 2.0, 1.0
.NET for Windows Phone apps
Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Portable Class Library
Supported in: Portable Class Library