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
- xmlAttribute
Type: DocumentFormat.OpenXml.DateTimeValue
The DateTimeValue to be converted.
Return Value
Type: System.DateTime
The internal DateTime value.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when "xmlAttribute" is null. |