Share via


CalendarPeriod constructor (DateTime, TimeSpan)

The CalendarPeriod method creates a new CalendarPeriod object with the specified start time and duration.

Namespace:  Microsoft.Exchange.Data.ContentTypes.iCalendar
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Sub New ( _
    start As DateTime, _
    duration As TimeSpan _
)
'Usage
Dim start As DateTime
Dim duration As TimeSpan

Dim instance As New CalendarPeriod(start, duration)
public CalendarPeriod(
    DateTime start,
    TimeSpan duration
)

Parameters

Remarks

When you set the value of the CalendarPeriod property by using an instance of the DateTime structure that does not specify DateTimeKind, the CalendarPeriod property assumes that the DateTime instance represents local time.

See also

Reference

CalendarPeriod structure

CalendarPeriod members

CalendarPeriod overload

Microsoft.Exchange.Data.ContentTypes.iCalendar namespace