Mono Class Library: System.Globalization.DateTimeFormatInfo Overview | Members

System.Globalization.DateTimeFormatInfo.MonthNames Property

Gets or sets a one-dimensional array of type string containing the culture-specific full names of the months. [Edit]

public string[] MonthNames { set; get; }

Value

A one-dimensional array of type string containing the full names of the months. For cultures with 12-month calendars the 13th element of the array is an empty string. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionThe value specified for a set operation is a null reference. [Edit]
ArgumentExceptionThe value specified for a set operation is not an array with exactly 13 elements. [Edit]
InvalidOperationExceptionThe current instance is read-only and a set operation was attempted. [Edit]

Remarks

The array specified in a set operation is required be one-dimensional and have exactly 13 elements.

The property value of the culture invariant DateTimeFormatInfo.MonthNames is a string array that contains "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" and "".

Note: The array returned by this property has 13 elements to support calendars with 13 months.

[Edit]

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0