Freigeben über


CalendarPropertyReader.ReadValueAsDateTime Method (CalendarValueType)

The ReadValueAsDateTime method reads a value and returns it as a DateTime structure.

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

Syntax

'Declaration
Public Function ReadValueAsDateTime ( _
    valueType As CalendarValueType _
) As DateTime
'Usage
Dim instance As CalendarPropertyReader
Dim valueType As CalendarValueType
Dim returnValue As DateTime

returnValue = instance.ReadValueAsDateTime(valueType)
public DateTime ReadValueAsDateTime(
    CalendarValueType valueType
)

Parameters

Return Value

Type: System.DateTime
The ReadValueAsDateTime property returns a DateTime structure with a DateTimeKind of Coordinated Universal Time (UTC) if the property contains a UTC value; otherwise, the DateTimeKind in the returned DateTime structure is DateTimeKind.Unspecified.