Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets a one-dimensional array of type String containing the culture-specific full names of the months.
Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public ReadOnly Property MonthNames As String()
public string[] MonthNames { get; }
public:
property array<String^>^ MonthNames {
array<String^>^ get ();
}
member MonthNames : string[] with get
function get MonthNames () : String[]
Property Value
Type: array<System. . :: . .String> [] () [] []
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 "".
Remarks
When this property is set, the array must be one-dimensional and must have exactly 13 elements. Calendar objects accommodate calendars with 13 months.
If you set the MonthNames property, you must also set the MonthGenitiveNames property.
If the custom pattern includes the format pattern "MMMM", DateTime..::..ToString displays the value of MonthNames in place of the "MMMM" in the format pattern.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.