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
- xmlAttribute
Typ: DocumentFormat.OpenXml.DateTimeValue
The DateTimeValue to be converted.
Rückgabewert
Typ: System.DateTime
The internal DateTime value.
Ausnahmen
Ausnahme | Bedingung |
---|---|
InvalidOperationException | Thrown when "xmlAttribute" is null. |