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.GetValues

Returns the values of the enumeration members of the given Enum.

[Visual Basic]
Public Shared Function GetValues( _
   ByVal enumType As Type _
) As Object ()
[C#]
public static object[] GetValues(
   Type enumType
);
[C++]
public: static Object* GetValues(
   Type* enumType
) [];
[JScript]
public static function GetValues(
   enumType : Type
) : Object[];

Parameters

enumType
The enumeration from which to retrieve members.

Return Value

An array of type Object whose elements are the enumeration members of enumType.

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