TypeBuilder.DefineFieldCore メソッド

定義

派生クラスでオーバーライドされると、指定された名前、属性、フィールド型、およびカスタム修飾子を使用して、新しいフィールドが型に追加されます。

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

パラメーター

fieldName
String

フィールドの名前。 fieldName に埋め込み null 値を含めることはできません。

type
Type

フィールドの型。

requiredCustomModifiers
Type[]

フィールドに必要なカスタム修飾子を表す型の配列。

optionalCustomModifiers
Type[]

フィールドの省略可能なカスタム修飾子を表す型の配列。

attributes
FieldAttributes

フィールドの属性を指定する列挙値のビットごとの組み合わせ。

戻り値

定義済みのフィールド。

適用対象