Type.GetEnumValuesAsUnderlyingType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves an array of the values of the underlying type constants of this enumeration type.
public:
virtual Array ^ GetEnumValuesAsUnderlyingType();
public virtual Array GetEnumValuesAsUnderlyingType ();
abstract member GetEnumValuesAsUnderlyingType : unit -> Array
override this.GetEnumValuesAsUnderlyingType : unit -> Array
Public Overridable Function GetEnumValuesAsUnderlyingType () As Array
Returns
An array that contains the values of the underlying type constants in this enumeration type.
Exceptions
This type is not an enumeration type.
Remarks
You can use this method to get enumeration values when it's hard to create an array of the enumeration type. For example, you might use this method for the MetadataLoadContext enumeration or on a platform where run-time code generation is not available.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示