AxHost.AttachInterfaces 方法

定义

在派生类中重写时,将接口附加到基础 ActiveX 控件。

protected:
 virtual void AttachInterfaces();
protected virtual void AttachInterfaces();
abstract member AttachInterfaces : unit -> unit
override this.AttachInterfaces : unit -> unit
Protected Overridable Sub AttachInterfaces ()

继承者说明

扩展 AxHost 的类应重写此方法。 在此方法的重写版本中,扩展类应调用 GetOcx() 以检索其自己的接口。 在大多数情况下, GetOcx() 在调用此方法之前,不应调用该方法。

适用于

另请参阅