ModuleBuilder.DefineGlobalMethodCore 메서드

정의

파생 클래스에서 재정의되는 경우 지정된 이름, 특성, 호출 규칙, 반환 형식, 반환 형식에 대한 사용자 지정 한정자, 매개 변수 형식 및 매개 변수 형식에 대한 사용자 지정 한정자를 사용하여 전역 메서드를 정의합니다.

protected:
 abstract System::Reflection::Emit::MethodBuilder ^ DefineGlobalMethodCore(System::String ^ name, System::Reflection::MethodAttributes attributes, System::Reflection::CallingConventions callingConvention, Type ^ returnType, cli::array <Type ^> ^ requiredReturnTypeCustomModifiers, cli::array <Type ^> ^ optionalReturnTypeCustomModifiers, cli::array <Type ^> ^ parameterTypes, cli::array <cli::array <Type ^> ^> ^ requiredParameterTypeCustomModifiers, cli::array <cli::array <Type ^> ^> ^ optionalParameterTypeCustomModifiers);
protected abstract System.Reflection.Emit.MethodBuilder DefineGlobalMethodCore (string name, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, Type? returnType, Type[]? requiredReturnTypeCustomModifiers, Type[]? optionalReturnTypeCustomModifiers, Type[]? parameterTypes, Type[][]? requiredParameterTypeCustomModifiers, Type[][]? optionalParameterTypeCustomModifiers);
abstract member DefineGlobalMethodCore : string * System.Reflection.MethodAttributes * System.Reflection.CallingConventions * Type * Type[] * Type[] * Type[] * Type[][] * Type[][] -> System.Reflection.Emit.MethodBuilder
Protected MustOverride Function DefineGlobalMethodCore (name As String, attributes As MethodAttributes, callingConvention As CallingConventions, returnType As Type, requiredReturnTypeCustomModifiers As Type(), optionalReturnTypeCustomModifiers As Type(), parameterTypes As Type(), requiredParameterTypeCustomModifiers As Type()(), optionalParameterTypeCustomModifiers As Type()()) As MethodBuilder

매개 변수

name
String

메서드의 이름입니다. name 포함된 null 문자를 포함할 수 없습니다.

attributes
MethodAttributes

메서드의 특성을 지정하는 열거형 값의 비트 조합입니다. 특성에는 가 포함되어 Static야 합니다.

callingConvention
CallingConventions

메서드의 호출 규칙입니다.

returnType
Type

메서드의 반환 형식입니다.

requiredReturnTypeCustomModifiers
Type[]

반환 형식에 필요한 사용자 지정 한정자를 나타내는 형식의 배열입니다.

optionalReturnTypeCustomModifiers
Type[]

반환 형식에 대한 선택적 사용자 지정 한정자를 나타내는 형식의 배열입니다.

parameterTypes
Type[]

메서드 매개 변수의 형식입니다.

requiredParameterTypeCustomModifiers
Type[][]

형식 배열의 배열입니다. 각 형식 배열은 전역 메서드의 해당 매개 변수에 대한 필수적 사용자 지정 한정자를 나타냅니다.

optionalParameterTypeCustomModifiers
Type[][]

형식 배열의 배열입니다. 형식의 각 배열은 전역 메서드의 해당 매개 변수에 대한 선택적 사용자 지정 한정자를 나타냅니다.

반환

정의된 전역 메서드입니다.

적용 대상