ModuleBuilder.DefineEnumCore(String, TypeAttributes, Type) 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.
When overridden in a derived class, defines an enumeration type that is a value type with a single non-static field called value__ of the specified type.
protected:
abstract System::Reflection::Emit::EnumBuilder ^ DefineEnumCore(System::String ^ name, System::Reflection::TypeAttributes visibility, Type ^ underlyingType);
protected abstract System.Reflection.Emit.EnumBuilder DefineEnumCore (string name, System.Reflection.TypeAttributes visibility, Type underlyingType);
abstract member DefineEnumCore : string * System.Reflection.TypeAttributes * Type -> System.Reflection.Emit.EnumBuilder
Protected MustOverride Function DefineEnumCore (name As String, visibility As TypeAttributes, underlyingType As Type) As EnumBuilder
Parameters
- name
- String
The full path of the enumeration type. name
cannot contain embedded nulls.
- visibility
- TypeAttributes
A bitwise combination of the enumeration values that specifies the type attributes for the enumeration visibility. The attributes are any bits defined by VisibilityMask.
- underlyingType
- Type
The underlying type for the enumeration. This must be a built-in integer type.
Returns
The defined enumeration.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för