DateTimeFormatInfo..::..YearMonthPattern Property
Gets or sets the custom format string for a year and month value.
Namespace:
System.GlobalizationAssembly: Bridge (in Bridge.dll)
Syntax
[FieldPropertyAttribute] public string YearMonthPattern { get; set; }
<FieldPropertyAttribute> _ Public Property YearMonthPattern As String Get Set
[FieldPropertyAttribute] public: property String^ YearMonthPattern { String^ get (); void set (String^ value); }
Return Value
The custom format string for a year and month value.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The property is being set to null. |
System..::..InvalidOperationException | The property is being set and the DateTimeFormatInfo object is read-only. |