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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.