RecurrencePattern.DayOfWeekMask Property

Returns or sets an OlDaysOfWeek constant representing the mask for the days of the week on which the recurring appointment or task occurs. Read/write.

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

Syntax

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

value = instance.DayOfWeekMask

instance.DayOfWeekMask = value
[DispIdAttribute()]
OlDaysOfWeek DayOfWeekMask { get; set; }

Property Value

Type: Microsoft.Office.Interop.Outlook.OlDaysOfWeek

Remarks

The DayOfWeekMask should be set after the RecurrenceType property has been set and before the PatternEndDate and PatternStartDate properties are set.

Monthly and yearly patterns are only valid for a single day. Weekly patterns are only valid as the Or of the DayOfWeekMask.

See Also

Reference

RecurrencePattern Interface

RecurrencePattern Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create a Recurring Appointment That Has a Weekly Pattern

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