ComEventInterfaceAttribute.EventProvider 属性
定义
获取实现事件接口方法的类。Gets the class that implements the methods of the event interface.
public:
property Type ^ EventProvider { Type ^ get(); };
public Type EventProvider { get; }
member this.EventProvider : Type
Public ReadOnly Property EventProvider As Type
属性值
一个 Type,其中包含实现事件接口方法的类。A Type that contains the class that implements the methods of the event interface.
注解
此值设置为 Tlbimp.exe (类型库导入程序) 生成的事件提供程序类的类型。This value is set to the type of the event provider class generated by the Tlbimp.exe (Type Library Importer). Tlbimp.exe 在 EventProvider 后面追加源接口名称。Tlbimp.exe appends the source interface name with EventProvider. 例如,Imy 接口变为 IMyInterfaceEventProvider。For example, IMyInterface becomes IMyInterfaceEventProvider.