Gets or sets a set of months in a year during which an event should occur.
[Visual Basic] Public Property MonthsOfYear As Months [C#] public Months MonthsOfYear {get; set;} [C++] public: __property Months get_MonthsOfYear(); public: __property void set_MonthsOfYear(Months); [JScript] public function get MonthsOfYear() : Months; public function set MonthsOfYear(Months);
One of the Months values. The default is All.
Exception Type | Condition |
---|---|
ArgumentException | The value is not a valid Months value. |
MonthlyPattern Class | MonthlyPattern Members | System.Timers Namespace | Months