Breyta

Deila með


ManagedToNativeComInteropStubAttribute(Type, String) Constructor

Definition

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.

Applies to