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,包含來自型別程式庫的原始來源介面。 COM 使用這個介面回呼至 Managed 類別。

EventProvider
Type

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

適用於