TypeBuilder.DefineFieldCore メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
派生クラスでオーバーライドされると、指定された名前、属性、フィールド型、およびカスタム修飾子を使用して、新しいフィールドが型に追加されます。
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
フィールドの属性を指定する列挙値のビットごとの組み合わせ。
戻り値
定義済みのフィールド。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET