ManagedToNativeComInteropStubAttribute(Type, String) 생성자

정의

지정된 클래스 형식 및 메서드 이름을 사용하여 클래스의 ManagedToNativeComInteropStubAttribute 새 인스턴스를 초기화합니다.

public:
 ManagedToNativeComInteropStubAttribute(Type ^ classType, System::String ^ methodName);
public ManagedToNativeComInteropStubAttribute(Type classType, string methodName);
new System.Runtime.InteropServices.ManagedToNativeComInteropStubAttribute : Type * string -> System.Runtime.InteropServices.ManagedToNativeComInteropStubAttribute
Public Sub New (classType As Type, methodName As String)

매개 변수

classType
Type

필요한 스텁 메서드를 포함하는 클래스입니다.

methodName
String

스텁 메서드의 이름입니다.

예외

methodName 찾을 수 없습니다.

-또는-

메서드가 정적 또는 제네릭이 아닌 경우

-또는-

메서드의 매개 변수 목록이 스텁의 예상 매개 변수 목록과 일치하지 않습니다.

스텁 메서드에 프라이빗 또는 보호된 접근성이 있거나 보안 문제로 인해 관리되는 interop 메서드를 포함하는 인터페이스는 스텁 메서드에 액세스할 수 없습니다.

적용 대상