Share via


RecurrencePattern.Occurrences Property

Returns or sets an Integer (int in C#) value indicating the number of occurrences of the recurrence pattern. Read/write.

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

Syntax

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

value = instance.Occurrences

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

Property Value

Type: System.Int32

Remarks

This property allows the definition of a recurrence pattern that is only valid for the specified number of subsequent occurrences. For example, you can set this property to 10 for a formal training course that will be held on the next ten Thursday evenings. This property must be coordinated with other properties when setting up a recurrence pattern. If the PatternEndDate property or the Occurrences property is set, the pattern is considered to be finite and the NoEndDate property is False. If neither PatternEndDate nor Occurrences is set, the pattern is considered infinite and NoEndDate is True.

See Also

Reference

RecurrencePattern Interface

RecurrencePattern Members

Microsoft.Office.Interop.Outlook Namespace