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

Type A 包含了來自型別函式庫的原始原始碼介面。 COM 利用此介面回調至受管理類別。

EventProvider
Type

A Type 包含實作事件介面方法的類別。

適用於