Freigeben über


EnumValue<T> Implicit-Konvertierung (EnumValue<T> to T)

Implicit converter to enum.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Shared Widening Operator CType ( _
    xmlAttribute As EnumValue(Of T) _
) As T
'Usage
Dim input As EnumValue(Of T)
Dim output As T

output = CType(input, T)
public static implicit operator T (
    EnumValue<T> xmlAttribute
)

Parameter

Rückgabewert

Typ: T
The internal enum value.

Ausnahmen

Ausnahme Bedingung
InvalidOperationException

Thrown when "xmlAttribute" is null.

Siehe auch

Referenz

EnumValue<T> Klasse

EnumValue<T>-Member

Implicit Überladung

DocumentFormat.OpenXml-Namespace