ArcFM Responder Mobile Developer Guide
ToEnum<T>(Object,T) Method






Convert to enum value
Syntax
'Declaration
 
Public Overloads Shared Function ToEnum(Of T As {New, Struct})( _
   ByVal value As System.Object, _
   ByVal nullValue As T _
) As T
'Usage
 
Dim value As System.Object
Dim nullValue As T
Dim value As T
 
value = DbConvert.ToEnum(Of T)(value, nullValue)
public static T ToEnum<T>( 
   System.object value,
   T nullValue
)
where T: new(), struct
public function ToEnum( 
    value: System.TObject;
    nullValue: T
): T; static; 
public static function ToEnum( 
   value : System.Object,
   nullValue : T
) : T;
public: static T* ToEnum<T>( 
   System.Object* value,
   T* nullValue
) 
where T: gcnew(), value class
public:
static T^ ToEnumgeneric<typename T>
( 
   System.Object^ value,
   T^ nullValue
) 
where T: gcnew(), value class

Parameters

value
nullValue

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DbConvert Class
DbConvert Members
Overload List

Send Feedback