TypeBuilder.DefinePInvokeMethodCore 메서드

정의

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

protected:
 abstract System::Reflection::Emit::MethodBuilder ^ DefinePInvokeMethodCore(System::String ^ name, System::String ^ dllName, System::String ^ entryName, System::Reflection::MethodAttributes attributes, System::Reflection::CallingConventions callingConvention, Type ^ returnType, cli::array <Type ^> ^ returnTypeRequiredCustomModifiers, cli::array <Type ^> ^ returnTypeOptionalCustomModifiers, cli::array <Type ^> ^ parameterTypes, cli::array <cli::array <Type ^> ^> ^ parameterTypeRequiredCustomModifiers, cli::array <cli::array <Type ^> ^> ^ parameterTypeOptionalCustomModifiers, System::Runtime::InteropServices::CallingConvention nativeCallConv, System::Runtime::InteropServices::CharSet nativeCharSet);
protected abstract System.Reflection.Emit.MethodBuilder DefinePInvokeMethodCore (string name, string dllName, string entryName, System.Reflection.MethodAttributes attributes, System.Reflection.CallingConventions callingConvention, Type? returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers, System.Runtime.InteropServices.CallingConvention nativeCallConv, System.Runtime.InteropServices.CharSet nativeCharSet);
abstract member DefinePInvokeMethodCore : string * string * string * System.Reflection.MethodAttributes * System.Reflection.CallingConventions * Type * Type[] * Type[] * Type[] * Type[][] * Type[][] * System.Runtime.InteropServices.CallingConvention * System.Runtime.InteropServices.CharSet -> System.Reflection.Emit.MethodBuilder
Protected MustOverride Function DefinePInvokeMethodCore (name As String, dllName As String, entryName As String, attributes As MethodAttributes, callingConvention As CallingConventions, returnType As Type, returnTypeRequiredCustomModifiers As Type(), returnTypeOptionalCustomModifiers As Type(), parameterTypes As Type(), parameterTypeRequiredCustomModifiers As Type()(), parameterTypeOptionalCustomModifiers As Type()(), nativeCallConv As CallingConvention, nativeCharSet As CharSet) As MethodBuilder

매개 변수

name
String

PInvoke 메서드의 이름입니다. name에는 내장된 null이 포함될 수 없습니다.

dllName
String

PInvoke 메서드가 정의된 DLL의 이름입니다.

entryName
String

DLL의 진입점 이름입니다.

attributes
MethodAttributes

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

callingConvention
CallingConventions

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

returnType
Type

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

returnTypeRequiredCustomModifiers
Type[]

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

returnTypeOptionalCustomModifiers
Type[]

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

parameterTypes
Type[]

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

parameterTypeRequiredCustomModifiers
Type[][]

형식 배열의 배열입니다. 형식의 각 배열은 해당 매개 변수에 필요한 사용자 지정 한정자를 나타냅니다.

parameterTypeOptionalCustomModifiers
Type[][]

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

nativeCallConv
CallingConvention

네이티브 호출 규칙입니다.

nativeCharSet
CharSet

메서드의 네이티브 문자 집합입니다.

반환

정의된 PInvoke 메서드를 나타내는 MethodBuilder입니다.

적용 대상