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

필드의 특성을 지정하는 열거형 값의 비트 조합입니다.

반환

정의된 필드입니다.

적용 대상