NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Enum.ToObject (Type, Int64)

Returns an instance of the given enumeration type set to the given value.

[Visual Basic]
Overloads Public Shared Function ToObject( _
   ByVal enumType As Type, _
   ByVal value As Long _
) As Object
[C#]
public static object ToObject(
   Type enumType,
   long value
);
[C++]
public: static Object* ToObject(
   Type* enumType,
   __int64 value
);
[JScript]
public static function ToObject(
   enumType : Type,
   value : long
) : Object;

Parameters

enumType
The enumeration for which to create a value.
value
[To be supplied.]

Return Value

An instance of the enumeration set to the given value.

Exceptions

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

See Also

Enum Class | Enum Members | System Namespace | Enum.ToObject Overload List