CalendarPeriod Constructor (DateTime, DateTime)
The CalendarPeriod constructor creates a new CalendarPeriod object with the specified start and end times.
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, _
end As DateTime _
)
'Usage
Dim start As DateTime
Dim end As DateTime
Dim instance As New CalendarPeriod(start, end)
public CalendarPeriod(
DateTime start,
DateTime end
)
Parameters
- start
Type: System.DateTime
The start time for this CalendarPeriod structure.
- end
Type: System.DateTime
The end time for this CalendarPeriod structure.
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.