Type.GetEnumValues Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Restituisce una matrice dei valori delle costanti nel tipo di enumerazione corrente.
public:
virtual Array ^ GetEnumValues();
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("It might not be possible to create an array of the enum type at runtime. Use Enum.GetValues<T> or the GetEnumValuesAsUnderlyingType method instead.")]
public virtual Array GetEnumValues();
public virtual Array GetEnumValues();
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("It might not be possible to create an array of the enum type at runtime. Use the GetEnumValues<TEnum> overload or the GetEnumValuesAsUnderlyingType method instead.")]
public virtual Array GetEnumValues();
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("It might not be possible to create an array of the enum type at runtime. Use Enum.GetValues<T> or the GetEnumValuesAsUnderlyingType method instead.")>]
abstract member GetEnumValues : unit -> Array
override this.GetEnumValues : unit -> Array
abstract member GetEnumValues : unit -> Array
override this.GetEnumValues : unit -> Array
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("It might not be possible to create an array of the enum type at runtime. Use the GetEnumValues<TEnum> overload or the GetEnumValuesAsUnderlyingType method instead.")>]
abstract member GetEnumValues : unit -> Array
override this.GetEnumValues : unit -> Array
Public Overridable Function GetEnumValues () As Array
Valori restituiti
Matrice che contiene i valori. Gli elementi della matrice vengono ordinati in base ai valori binari (ovvero i valori senza segno) delle costanti di enumerazione.
- Attributi
Eccezioni
Il tipo corrente non è un'enumerazione.