DateTimeFormatInfo::MonthGenitiveNames Property
Gets or sets a string array of month names associated with the current DateTimeFormatInfo object.
Assembly: mscorlib (in mscorlib.dll)
public: [ComVisibleAttribute(false)] property array<String^>^ MonthGenitiveNames { array<String^>^ get(); void set(array<String^>^ value); }
| Exception | Condition |
|---|---|
| ArgumentException | In a set operation, the array is multidimensional or has a length that is not exactly 13. |
| ArgumentNullException | In a set operation, the array or one of its elements is null. |
| InvalidOperationException | In a set operation, the current DateTimeFormatInfo object is read-only. |
In some languages, a month name that is part of a date appears in the genitive case. For example, a date in the Russian (Russia) or "ru-RU", culture consists of the day number and the genitive month name, such as 1 Января.
When this property is set, the array must be one-dimensional and must have exactly 13 elements. Calendar objects accommodate calendars with 13 months. The first element (the element at index zero) represents the first month of the year defined by the Calendar property.If you set the MonthGenitiveNames property, you must also set the MonthNames property.
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1