Compartilhar via


DateTimeValue Implicit Conversion (DateTimeValue to DateTime)

Implicit converter to DateTime.

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

Syntax

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

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

Parameters

Return Value

Type: System.DateTime
The internal DateTime value.

Exceptions

Exception Condition
InvalidOperationException

Thrown when "xmlAttribute" is null.

See Also

Reference

DateTimeValue Class

DateTimeValue Members

Implicit Overload

DocumentFormat.OpenXml Namespace