OpenXmlSimpleValue<T> Implicit Conversion (OpenXmlSimpleValue<T> to T)
Implicit converter to T.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
Public Shared Widening Operator CType ( _
xmlAttribute As OpenXmlSimpleValue(Of T) _
) As T
'Uso
Dim input As OpenXmlSimpleValue(Of T)
Dim output As T
output = CType(input, T)
public static implicit operator T (
OpenXmlSimpleValue<T> xmlAttribute
)
Parameters
- xmlAttribute
Type: DocumentFormat.OpenXml.OpenXmlSimpleValue<T>
The OpenXmlSimpleValue instance.
Return Value
Type: T
The internal value in OpenXmlSimpleValue.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when "xmlAttribute" is null. |