Partager via


RecurrencePattern.Duration Property

Returns or sets an Integer (int in C#) value indicating the duration (in minutes) of the RecurrencePattern. Read/write.

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

Syntax

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

value = instance.Duration

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

Property Value

Type: System.Int32

Remarks

For recurrences, this property is only valid for appointments.

To create a duration of one day for an all-day event, set the duration equal to 1440.

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