Bewerken

Delen via


EnumBuilder.DefineLiteralCore(String, Object) Method

Definition

When overridden in a derived class, defines the named static field in an enumeration type with the specified constant value.

protected:
 abstract System::Reflection::Emit::FieldBuilder ^ DefineLiteralCore(System::String ^ literalName, System::Object ^ literalValue);
protected abstract System.Reflection.Emit.FieldBuilder DefineLiteralCore (string literalName, object? literalValue);
abstract member DefineLiteralCore : string * obj -> System.Reflection.Emit.FieldBuilder
Protected MustOverride Function DefineLiteralCore (literalName As String, literalValue As Object) As FieldBuilder

Parameters

literalName
String

The name of the static field.

literalValue
Object

The constant value of the literal.

Returns

The defined field.

Applies to