ManagedToNativeComInteropStubAttribute(Type, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ManagedToNativeComInteropStubAttribute class with the specified class type and method name.
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)
Parameters
- classType
- Type
The class that contains the required stub method.
- methodName
- String
The name of the stub method.
Exceptions
methodName
cannot be found.
-or-
The method is not static or non-generic.
-or-
The method's parameter list does not match the expected parameter list for the stub.
The interface that contains the managed interop method has no access to the stub method, because the stub method has private or protected accessibility, or because of a security issue.