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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.