RecurrencePattern.MonthOfYear Property

Returns or sets an Integer (int in C#) value indicating which month of the year is valid for the specified recurrence pattern. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property MonthOfYear As Integer
    Get
    Set
'Usage
Dim instance As RecurrencePattern
Dim value As Integer

value = instance.MonthOfYear

instance.MonthOfYear = value
[DispIdAttribute()]
int MonthOfYear { get; set; }

Property Value

Type: System.Int32

Remarks

The value can be a number from 1 through 12. For example, setting this property to 5 and the RecurrenceType property to olRecursYearly would cause this recurrence pattern to occur every May. This property is only valid for recurrence patterns whose RecurrenceType property is set to olRecursYearly or olRecursYearNth.

See Also

Reference

RecurrencePattern Interface

RecurrencePattern Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create an Annual Recurring Appointment That Uses a YearNth Pattern