Επεξεργασία

Κοινή χρήση μέσω


ModuleBuilder.DefineEnumCore(String, TypeAttributes, Type) Method

Definition

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