DateTimeFormatInfo..::..DayNames Property
Gets or sets a one-dimensional string array that contains the culture-specific full names of the days of the week.
Namespace:
System.GlobalizationAssembly: Bridge (in Bridge.dll)
Syntax
[FieldPropertyAttribute] public string[] DayNames { get; set; }
<FieldPropertyAttribute> _ Public Property DayNames As String() Get Set
[FieldPropertyAttribute] public: property array<String^>^ DayNames { array<String^>^ get (); void set (array<String^>^ value); }
Return Value
A one-dimensional string array that contains the culture-specific full names of the days of the week. The array for InvariantInfo contains "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", and "Saturday".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 7. |
System..::..InvalidOperationException | The property is being set and the DateTimeFormatInfo object is read-only. |