GetValueAsEnum<T>() Method
In This Topic
Attempts to return the value as an enum of type .
Syntax
'Declaration
Public Overloads Function GetValueAsEnum(Of As {New, Enum, Struct})() As Nullable(Of T)
public Nullable<T> GetValueAsEnum<>()
where T: new(), Enum, struct
public:
Nullable<T^> GetValueAsEnumgeneric<typename >
();
where T: gcnew(), Enum, value class
Type Parameters
- T
Return Value
The value of the option, or a null reference (Nothing in Visual Basic) if no value is set or if the value cannot be converted to .
See Also