TypeProvider.GetEnumNames(Type) Metod

Definition

Innehåller en strängmatris som innehåller namnen för den angivna Enum i indexerad ordning.

public:
 static cli::array <System::String ^> ^ GetEnumNames(Type ^ enumType);
public static string[] GetEnumNames(Type enumType);
static member GetEnumNames : Type -> string[]
Public Shared Function GetEnumNames (enumType As Type) As String()

Parametrar

enumType
Type

Den typ som namnen ska hämtas från.

Returer

String[]

Namnen för angivna Enum i indexerad ordning.

Undantag

enumType är en nullreferens (Visual Basic Nothing).

enumType Är inte en Enum.

Gäller för