Freigeben über


DateTimeValue Implicit-Konvertierung (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
)

Parameter

Rückgabewert

Typ: System.DateTime
The internal DateTime value.

Ausnahmen

Ausnahme Bedingung
InvalidOperationException

Thrown when "xmlAttribute" is null.

Siehe auch

Referenz

DateTimeValue Klasse

DateTimeValue-Member

Implicit Überladung

DocumentFormat.OpenXml-Namespace