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

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

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

スタブ メソッドのアクセシビリティが private または protected であるか、セキュリティ上の問題があるために、マネージド相互運用メソッドを格納しているインターフェイスがスタブ メソッドにアクセスできません。

適用対象