다음을 통해 공유


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 메서드를 포함하는 인터페이스는 스텁 메서드가 프라이빗 또는 보호된 접근성을 갖거나 보안 문제 때문에 스텁 메서드에 액세스하지 못합니다.

적용 대상