ComAwareEventInfo(Type, String) 构造函数
定义
使用指定类型和该类型的事件名称来初始化 ComAwareEventInfo 类的新实例。Initializes a new instance of the ComAwareEventInfo class by using the specified type and a name of the event on the type.
public:
ComAwareEventInfo(Type ^ type, System::String ^ eventName);
public ComAwareEventInfo (Type type, string eventName);
new System.Runtime.InteropServices.ComAwareEventInfo : Type * string -> System.Runtime.InteropServices.ComAwareEventInfo
Public Sub New (type As Type, eventName As String)
参数
- type
- Type
对象的类型。The type of object.
- eventName
- String
有关 type 的事件的名称。The name of an event on type.