OpenNETCF Smart Device Framework 2.3
Assembly: OpenNETCF (in OpenNETCF.dll) Version: 2.3.0.0
Retrieves an array of the values of the constants in a specified enumeration.
Namespace:
OpenNETCFAssembly: OpenNETCF (in OpenNETCF.dll) Version: 2.3.0.0
Syntax
| C# |
|---|
public static Enum[] GetValues( Type enumType ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function GetValues ( _ enumType As Type _ ) As Enum() |
| Visual Basic (Usage) |
|---|
Dim enumType As Type Dim returnValue As Enum() returnValue = Enum2.GetValues(enumType) |
| Visual C++ |
|---|
public: static array<Enum^>^ GetValues( Type^ enumType ) |
| J# |
|---|
public static Enum[] GetValues( Type enumType ) |
| JScript |
|---|
public static function GetValues( enumType : Type ) : Enum[] |
| JavaScript |
|---|
OpenNETCF.Enum2.GetValues = function(enumType); |
Parameters
- enumType
- Type: System..::.Type
An enumeration type.
Return Value
An System.Array of the values of the constants in enumType. The elements of the array are sorted by the values of the enumeration constants.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentException | enumType parameter is not an System.Enum |