TypeBuilder.DefinePInvokeMethodCore 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파생 클래스에서 재정의되는 경우 제공된 이름, 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입니다.
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기