UnmanagedFunctionPointerAttribute 클래스

정의

관리되지 않는 코드에 대한 관리되지 않는 함수 포인터로 전달된 대리자 서명의 마샬링 동작을 제어합니다. 이 클래스는 상속할 수 없습니다.

public ref class UnmanagedFunctionPointerAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)]
public sealed class UnmanagedFunctionPointerAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class UnmanagedFunctionPointerAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)>]
type UnmanagedFunctionPointerAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Delegate, AllowMultiple=false, Inherited=false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type UnmanagedFunctionPointerAttribute = class
    inherit Attribute
Public NotInheritable Class UnmanagedFunctionPointerAttribute
Inherits Attribute
상속
UnmanagedFunctionPointerAttribute
특성

설명

특성의 UnmanagedFunctionPointerAttribute 필드는 대리자를 관리되지 않는 함수 포인터로 전환하는 다양한 측면을 제어하며 특성에서 DllImportAttribute 이름이 동일한 필드와 동일합니다. 이러한 필드는 선택 사항입니다.

특성 사용에 대한 자세한 내용은 특성을 참조하세요.

생성자

Name Description
UnmanagedFunctionPointerAttribute(CallingConvention)

지정된 호출 규칙을 사용하여 클래스의 UnmanagedFunctionPointerAttribute 새 인스턴스를 초기화합니다.

필드

Name Description
BestFitMapping

유니코드 문자를 ANSI 문자로 변환할 때 가장 적합한 매핑 동작을 사용하거나 사용하지 않도록 설정합니다.

CharSet

문자열 매개 변수를 메서드로 마샬링하는 방법을 나타내고 이름 맨글링을 제어합니다.

SetLastError

호출 수신자가 특성 지정된 메서드에서 반환하기 전에 SetLastError Windows API 함수를 호출하는지 여부를 나타냅니다.

ThrowOnUnmappableChar

ANSI "?" 문자로 변환되는 매핑할 수 없는 유니코드 문자에서 예외 throw를 사용하거나 사용하지 않도록 설정합니다.

속성

Name Description
CallingConvention

호출 규칙의 값을 가져옵니다.

TypeId

파생 클래스에서 구현되는 경우 이 Attribute대한 고유 식별자를 가져옵니다.

(다음에서 상속됨 Attribute)

메서드

Name Description
Equals(Object)

이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 Attribute)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IsDefaultAttribute()

파생 클래스에서 재정의되는 경우 이 인스턴스의 값이 파생 클래스의 기본값인지 여부를 나타냅니다.

(다음에서 상속됨 Attribute)
Match(Object)

파생 클래스에서 재정의되는 경우 이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당 디스패치 식별자 집합에 매핑합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

(다음에서 상속됨 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

개체가 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

(다음에서 상속됨 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에 의해 노출되는 속성 및 메서드에 대한 액세스를 제공합니다.

(다음에서 상속됨 Attribute)

적용 대상

추가 정보