EnumBuilder.DefineLiteralCore(String, Object) 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 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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.