ComEventInterfaceAttribute(Type, Type) 构造函数

定义

使用源接口和事件提供程序类初始化类的新实例 ComEventInterfaceAttribute

public:
 ComEventInterfaceAttribute(Type ^ SourceInterface, Type ^ EventProvider);
public ComEventInterfaceAttribute(Type SourceInterface, Type EventProvider);
new System.Runtime.InteropServices.ComEventInterfaceAttribute : Type * Type -> System.Runtime.InteropServices.ComEventInterfaceAttribute
Public Sub New (SourceInterface As Type, EventProvider As Type)

参数

SourceInterface
Type

包含类型库中的原始源接口的 A Type 。 COM 使用此接口回调托管类。

EventProvider
Type

一个 Type 包含实现事件接口方法的类。

适用于