ComEventsHelper 类

定义

警告

此 API 现已过时。

提供允许进行 .NET Framework 委托的方法,这些委托可以处理为 COM 对象添加和删除的事件。Provides methods that enable .NET Framework delegates that handle events to be added and removed from COM objects.

public ref class ComEventsHelper abstract sealed
[System.Obsolete("ComEventsHelper may be unavailable in future releases.")]
public static class ComEventsHelper
public static class ComEventsHelper
type ComEventsHelper = class
Public Class ComEventsHelper
继承
ComEventsHelper
属性

方法

Combine(Object, Guid, Int32, Delegate)

将委托添加到源自 COM 对象的事件的调用列表。Adds a delegate to the invocation list of events originating from a COM object.

Remove(Object, Guid, Int32, Delegate)

从源自 COM 对象的事件的调用列表中移除委托。Removes a delegate from the invocation list of events originating from a COM object.

适用于