UInt16Value Implicit Conversion (UInt16Value to UInt16)
Implicit converter to UInt16.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Shared Widening Operator CType ( _
xmlAttribute As UInt16Value _
) As UShort
'Usage
Dim input As UInt16Value
Dim output As UShort
output = CType(input, UShort)
public static implicit operator ushort (
UInt16Value xmlAttribute
)
Parameters
- xmlAttribute
Type: DocumentFormat.OpenXml.UInt16Value
The UInt16Value to be converted.
Return Value
Type: System.UInt16
The internal UInt16 value.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when "xmlAttribute" is null. |