次の方法で共有


RecurrencePattern.Interval Property

Returns or sets an Integer (int in C#) value specifying the number of units of a given recurrence type between occurrences. Read/write.

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

Syntax

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

value = instance.Interval

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

Property Value

Type: System.Int32

Remarks

The Interval property must be set before setting PatternEndDate.

For example, setting the Interval property to 2 and the RecurrenceType property to olRecursWeekly would cause the pattern to occur every second week.

When RecurrenceType is set to olRecursYearNth or olRecursYear, the Interval property indicates the number of years between occurrences. For example, Interval equals 1 indicates the recurrence is every year, Interval equals 2 indicates the recurrence is every 2 years, and so on.

See Also

Reference

RecurrencePattern Interface

RecurrencePattern Members

Microsoft.Office.Interop.Outlook Namespace