ComEventsHelper ComEventsHelper ComEventsHelper ComEventsHelper Class

定义

警告

此 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
type ComEventsHelper = class
Public Class ComEventsHelper
继承
ComEventsHelperComEventsHelperComEventsHelperComEventsHelper
属性

方法

Combine(Object, Guid, Int32, Delegate) Combine(Object, Guid, Int32, Delegate) Combine(Object, Guid, Int32, Delegate) 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) Remove(Object, Guid, Int32, Delegate) Remove(Object, Guid, Int32, Delegate) Remove(Object, Guid, Int32, Delegate)

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

适用于