asp.net.ph

Enum.ToObject Method ( Type, UInt32 )

System Namespace   Enum Class


Returns an instance of the specified enumeration type set to the specified 32-bit unsigned integer value.

This method is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[ VB ]
<Serializable>
Overloads Public Shared Function ToObject ( _
   ByVal enumType As Type, _
   ByVal value As UInt32 _
) As Object

[ C# ]
[Serializable]
public static object ToObject (
   Type enumType,
   uint value
);

[ C++ ]
[Serializable]
public: static Object* ToObject (
   Type* enumType,
   unsigned int value
);

[JScript ]
public Serializable
static function ToObject (
   enumType : Type,
   value : UInt32
) : Object;

Parameters

enumType
The enumeration for which to create a value.
value
The value to set.

Return Value

An instance of the enumeration set to value.

Exceptions


Exception Type Condition
ArgumentNullException enumType is a null reference ( Nothing in Visual Basic ).
ArgumentException enumType is not an Enum.

See Also

Enum Members   Enum.ToObject Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph