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 が見つかりません。

-又は-

メソッドは静的でも非ジェネリックでありません。

-又は-

メソッドのパラメーター リストが、スタブに必要なパラメーター リストと一致しません。

スタブ メソッドにはプライベートまたは保護されたアクセシビリティがあるため、またはセキュリティの問題が原因で、マネージド相互運用メソッドを含むインターフェイスにはスタブ メソッドへのアクセス権がありません。

適用対象