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
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.

適用於