DateTimeFormatInfo..::..MonthNames Property
Gets or sets a one-dimensional array of type String containing the culture-specific full names of the months.
Namespace:
System.GlobalizationAssembly: Bridge (in Bridge.dll)
Syntax
[FieldPropertyAttribute] public string[] MonthNames { get; set; }
<FieldPropertyAttribute> _ Public Property MonthNames As String() Get Set
[FieldPropertyAttribute] public: property array<String^>^ MonthNames { array<String^>^ get (); void set (array<String^>^ value); }
Return Value
A one-dimensional array of type String containing the culture-specific full names of the months. In a 12-month calendar, the 13th element of the array is an empty string. The array for InvariantInfo contains "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", and "".Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The property is being set to null. |
System..::..ArgumentException | The property is being set to an array that is multidimensional or that has a length that is not exactly 13. |
System..::..InvalidOperationException | The property is being set and the DateTimeFormatInfo object is read-only. |