System Namespace Enum Class
Returns an instance of the specified enumeration set to the specified value.
[ VB ]
<Serializable>
Overloads Public Shared Function ToObject ( _
ByVal enumType As Type, _
ByVal value As Object _
) As Object
[ C# ]
[Serializable]
public static object ToObject (
Type enumType,
object value
);
[ C++ ]
[Serializable]
public: static Object* ToObject (
Type* enumType,
Object* value
);
[JScript ]
public Serializable
static function ToObject (
enumType : Type,
value : Object
) : Object;
- enumType
- An enumeration.
- value
- The value.
An enumeration object whose value is value.
The value parameter is specified in terms of the underlying type of the enumeration.
Enum Members Enum.ToObject Overload List