다음을 통해 공유


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 _
)
public CalendarPeriod (
    DateTime start,
    TimeSpan duration
)
public:
CalendarPeriod (
    DateTime start, 
    TimeSpan duration
)
public CalendarPeriod (
    DateTime start, 
    TimeSpan duration
)
public function CalendarPeriod (
    start : DateTime, 
    duration : TimeSpan
)

Parameters

  • duration
    The duration 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.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)