Freigeben über


DateTimeValue Implicit Conversion (DateTime to DateTimeValue)

Implicit converter from DateTime.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Shared Widening Operator CType ( _
    value As DateTime _
) As DateTimeValue
'Usage
Dim input As DateTime
Dim output As DateTimeValue

output = CType(input, DateTimeValue)
public static implicit operator DateTimeValue (
    DateTime value
)

Parameters

Return Value

Type: DocumentFormat.OpenXml.DateTimeValue
A new DateTimeValue instance with the value.

See Also

Reference

DateTimeValue Class

DateTimeValue Members

Implicit Overload

DocumentFormat.OpenXml Namespace