adTempus API
ArcanaDevelopment.adTempus.Client Namespace / Option Class / GetValueAsEnum Method / GetValueAsEnum<T>() Method


In This Topic
    GetValueAsEnum<T>() Method
    In This Topic
    Attempts to return the value as an enum of type T.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetValueAsEnum(Of T As {New, Enum, Struct})() As Nullable(Of T)
    public Nullable<T> GetValueAsEnum<T>()
    where T: new(), Enum, struct
    public:
    Nullable<T^> GetValueAsEnumgeneric<typename T>
    (); 
    where T: gcnew(), Enum, value class

    Type Parameters

    T

    Return Value

    The T 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 T.
    See Also