TypeBuilder.DefineFieldCore Metoda

Definice

Při přepsání v odvozené třídě přidá do typu nové pole s daným názvem, atributy, typem pole a vlastními modifikátory.

protected:
 abstract System::Reflection::Emit::FieldBuilder ^ DefineFieldCore(System::String ^ fieldName, Type ^ type, cli::array <Type ^> ^ requiredCustomModifiers, cli::array <Type ^> ^ optionalCustomModifiers, System::Reflection::FieldAttributes attributes);
protected abstract System.Reflection.Emit.FieldBuilder DefineFieldCore (string fieldName, Type type, Type[]? requiredCustomModifiers, Type[]? optionalCustomModifiers, System.Reflection.FieldAttributes attributes);
abstract member DefineFieldCore : string * Type * Type[] * Type[] * System.Reflection.FieldAttributes -> System.Reflection.Emit.FieldBuilder
Protected MustOverride Function DefineFieldCore (fieldName As String, type As Type, requiredCustomModifiers As Type(), optionalCustomModifiers As Type(), attributes As FieldAttributes) As FieldBuilder

Parametry

fieldName
String

Název pole. fieldName nesmí obsahovat vložené hodnoty null.

type
Type

Typ pole.

requiredCustomModifiers
Type[]

Pole typů představující požadované vlastní modifikátory pole.

optionalCustomModifiers
Type[]

Pole typů představující volitelné vlastní modifikátory pole.

attributes
FieldAttributes

Bitové kombinace hodnot výčtu, která určuje atributy pole.

Návraty

Definované pole.

Platí pro